home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.02.sit / SC.011.GetZoneList / GetZoneList.p < prev    next >
MacBinary  |  1989-10-01  |  19.3 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Oct 1 00:00:00 1989, modified Sun Oct 1 00:00:00 1989, creator 'MPS ', type ASCII, 19177 bytes "GetZoneList.p" , at 0x4b69 362 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 47 65 74 5a 6f 6e | 65 4c 69 73 74 2e 70 00 |..GetZon|eList.p.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 4a e9 00 | 00 01 6a a1 4b 3c 40 a1 |.....J..|..j.K<@.|
|00000060| 4b 3c 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K<@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 19 68 00 00 |........|.....h..|
|00000080| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000000d0| 23 0d 23 09 41 70 70 6c | 65 20 4d 61 63 69 6e 74 |#.#.Appl|e Macint|
|000000e0| 6f 73 68 20 44 65 76 65 | 6c 6f 70 65 72 20 54 65 |osh Deve|loper Te|
|000000f0| 63 68 6e 69 63 61 6c 20 | 53 75 70 70 6f 72 74 0d |chnical |Support.|
|00000100| 23 0d 23 09 41 70 70 6c | 65 54 61 6c 6b 20 47 65 |#.#.Appl|eTalk Ge|
|00000110| 74 5a 6f 6e 65 4c 69 73 | 74 20 53 61 6d 70 6c 65 |tZoneLis|t Sample|
|00000120| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 0d 23 0d 23 | Applica|tion.#.#|
|00000130| 09 47 65 74 5a 6f 6e 65 | 4c 69 73 74 0d 23 0d 23 |.GetZone|List.#.#|
|00000140| 09 47 65 74 5a 6f 6e 65 | 4c 69 73 74 2e 70 09 2d |.GetZone|List.p.-|
|00000150| 09 50 61 73 63 61 6c 20 | 53 6f 75 72 63 65 0d 23 |.Pascal |Source.#|
|00000160| 0d 23 09 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |.#.Copyr|ight . 1|
|00000170| 39 38 38 20 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |988 Appl|e Comput|
|00000180| 65 72 2c 20 49 6e 63 2e | 0d 23 09 41 6c 6c 20 72 |er, Inc.|.#.All r|
|00000190| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0d |ights re|served..|
|000001a0| 23 0d 23 09 56 65 72 73 | 69 6f 6e 73 3a 09 31 2e |#.#.Vers|ions:.1.|
|000001b0| 30 09 09 09 09 09 31 31 | 2f 38 38 0d 23 09 09 09 |0.....11|/88.#...|
|000001c0| 09 31 2e 31 09 09 09 09 | 09 31 30 2f 38 39 0d 23 |.1.1....|.10/89.#|
|000001d0| 0d 23 09 43 6f 6d 70 6f | 6e 65 6e 74 73 3a 09 47 |.#.Compo|nents:.G|
|000001e0| 65 74 5a 6f 6e 65 4c 69 | 73 74 2e 70 09 09 4f 63 |etZoneLi|st.p..Oc|
|000001f0| 74 6f 62 65 72 20 31 2c | 20 31 39 38 39 0d 23 09 |tober 1,| 1989.#.|
|00000200| 09 09 09 47 65 74 5a 6f | 6e 65 4c 69 73 74 2e 63 |...GetZo|neList.c|
|00000210| 09 09 4f 63 74 6f 62 65 | 72 20 31 2c 20 31 39 38 |..Octobe|r 1, 198|
|00000220| 39 0d 23 09 09 09 09 47 | 65 74 5a 6f 6e 65 4c 69 |9.#....G|etZoneLi|
|00000230| 73 74 2e 72 09 09 4f 63 | 74 6f 62 65 72 20 31 2c |st.r..Oc|tober 1,|
|00000240| 20 31 39 38 39 0d 23 09 | 09 09 09 50 47 65 74 5a | 1989.#.|...PGetZ|
|00000250| 6f 6e 65 4c 69 73 74 2e | 6d 61 6b 65 09 4f 63 74 |oneList.|make.Oct|
|00000260| 6f 62 65 72 20 31 2c 20 | 31 39 38 39 0d 23 09 09 |ober 1, |1989.#..|
|00000270| 09 09 43 47 65 74 5a 6f | 6e 65 4c 69 73 74 2e 6d |..CGetZo|neList.m|
|00000280| 61 6b 65 09 4f 63 74 6f | 62 65 72 20 31 2c 20 31 |ake.Octo|ber 1, 1|
|00000290| 39 38 39 0d 23 0d 23 09 | 52 65 71 75 69 72 65 6d |989.#.#.|Requirem|
|000002a0| 65 6e 74 73 3a 0d 23 09 | 09 09 09 55 46 61 69 6c |ents:.#.|...UFail|
|000002b0| 75 72 65 2e 70 09 09 09 | 4e 6f 76 65 6d 62 65 72 |ure.p...|November|
|000002c0| 20 31 2c 20 31 39 38 38 | 0d 23 09 09 09 09 55 46 | 1, 1988|.#....UF|
|000002d0| 61 69 6c 75 72 65 2e 69 | 6e 63 31 2e 70 09 09 4e |ailure.i|nc1.p..N|
|000002e0| 6f 76 65 6d 62 65 72 20 | 31 2c 20 31 39 38 38 0d |ovember |1, 1988.|
|000002f0| 23 09 09 09 09 55 46 61 | 69 6c 75 72 65 2e 61 09 |#....UFa|ilure.a.|
|00000300| 09 09 4e 6f 76 65 6d 62 | 65 72 20 31 2c 20 31 39 |..Novemb|er 1, 19|
|00000310| 38 38 0d 23 0d 23 09 47 | 65 74 5a 6f 6e 65 4c 69 |88.#.#.G|etZoneLi|
|00000320| 73 74 20 69 73 20 61 20 | 73 61 6d 70 6c 65 20 61 |st is a |sample a|
|00000330| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 20 |pplicati|on that |
|00000340| 75 73 65 73 0d 23 09 41 | 70 70 6c 65 54 61 6c 6b |uses.#.A|ppleTalk|
|00000350| 20 41 54 50 20 61 6e 64 | 20 5a 49 50 20 74 6f 20 | ATP and| ZIP to |
|00000360| 6f 62 74 61 69 6e 20 61 | 20 6c 69 73 74 20 6f 66 |obtain a| list of|
|00000370| 20 7a 6f 6e 65 73 0d 23 | 09 6f 6e 20 61 6e 20 41 | zones.#|.on an A|
|00000380| 70 70 6c 65 54 61 6c 6b | 20 69 6e 74 65 72 6e 65 |ppleTalk| interne|
|00000390| 74 2e 0d 23 0d 23 09 47 | 65 74 5a 6f 6e 65 4c 69 |t..#.#.G|etZoneLi|
|000003a0| 73 74 20 61 6c 73 6f 20 | 64 65 6d 6f 6e 73 74 72 |st also |demonstr|
|000003b0| 61 74 65 73 20 75 73 69 | 6e 67 20 61 20 73 69 67 |ates usi|ng a sig|
|000003c0| 6e 61 6c 2c 20 6f 72 0d | 23 09 66 61 69 6c 75 72 |nal, or.|#.failur|
|000003d0| 65 2d 63 61 74 63 68 69 | 6e 67 20 6d 65 63 68 61 |e-catchi|ng mecha|
|000003e0| 6e 69 73 6d 20 74 6f 20 | 72 65 63 6f 76 65 72 20 |nism to |recover |
|000003f0| 66 72 6f 6d 20 65 72 72 | 6f 72 0d 23 09 73 69 74 |from err|or.#.sit|
|00000400| 75 61 74 69 6f 6e 73 2e | 0d 23 0d 23 09 47 65 74 |uations.|.#.#.Get|
|00000410| 5a 6f 6e 65 4c 69 73 74 | 20 69 73 20 62 61 73 65 |ZoneList| is base|
|00000420| 64 20 6f 6e 20 4d 41 43 | 44 54 53 20 53 61 6d 70 |d on MAC|DTS Samp|
|00000430| 6c 65 2e 70 2e 20 46 6f | 72 20 6d 6f 72 65 0d 23 |le.p. Fo|r more.#|
|00000440| 09 64 65 73 63 72 69 70 | 74 69 6f 6e 20 61 6e 64 |.descrip|tion and|
|00000450| 20 65 78 70 6c 61 6e 61 | 6e 74 69 6f 6e 20 6f 66 | explana|ntion of|
|00000460| 20 74 68 65 20 6e 6f 6e | 2d 65 78 61 6d 70 6c 65 | the non|-example|
|00000470| 0d 23 09 73 70 65 63 69 | 66 69 63 20 61 72 65 61 |.#.speci|fic area|
|00000480| 73 20 6f 66 20 74 68 69 | 73 20 61 70 70 6c 69 63 |s of thi|s applic|
|00000490| 61 74 69 6f 6e 2c 20 70 | 6c 65 61 73 65 20 72 65 |ation, p|lease re|
|000004a0| 66 65 72 20 74 6f 0d 23 | 09 65 69 74 68 65 72 20 |fer to.#|.either |
|000004b0| 53 61 6d 70 6c 65 2e 70 | 20 6f 72 20 54 45 53 61 |Sample.p| or TESa|
|000004c0| 6d 70 6c 65 2e 70 2e 0d | 23 0d 2d 2d 2d 2d 2d 2d |mple.p..|#.------|
|000004d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000510| 2d 2d 2d 2d 2d 2d 2d 2d | 7d 0d 0d 50 52 4f 47 52 |--------|}..PROGR|
|00000520| 41 4d 20 47 65 74 5a 6f | 6e 65 4c 69 73 74 3b 0d |AM GetZo|neList;.|
|00000530| 0d 55 53 45 53 0d 09 4d | 65 6d 54 79 70 65 73 2c |.USES..M|emTypes,|
|00000540| 20 51 75 69 63 6b 44 72 | 61 77 2c 20 4f 53 49 6e | QuickDr|aw, OSIn|
|00000550| 74 66 2c 20 54 6f 6f 6c | 49 6e 74 66 2c 20 41 70 |tf, Tool|Intf, Ap|
|00000560| 70 6c 65 54 61 6c 6b 2c | 20 50 61 63 6b 49 6e 74 |pleTalk,| PackInt|
|00000570| 66 2c 20 46 69 78 4d 61 | 74 68 2c 20 53 63 72 69 |f, FixMa|th, Scri|
|00000580| 70 74 2c 20 55 46 61 69 | 6c 75 72 65 2c 20 54 72 |pt, UFai|lure, Tr|
|00000590| 61 70 73 3b 0d 0d 43 4f | 4e 53 54 0d 09 6b 53 79 |aps;..CO|NST..kSy|
|000005a0| 73 45 6e 76 69 72 6f 6e | 73 56 65 72 73 69 6f 6e |sEnviron|sVersion|
|000005b0| 09 09 3d 20 31 3b 0d 09 | 6b 4f 53 45 76 65 6e 74 |..= 1;..|kOSEvent|
|000005c0| 09 09 09 09 3d 20 61 70 | 70 34 45 76 74 3b 09 7b |....= ap|p4Evt;.{|
|000005d0| 65 76 65 6e 74 20 75 73 | 65 64 20 62 79 20 4d 75 |event us|ed by Mu|
|000005e0| 6c 74 69 46 69 6e 64 65 | 72 7d 0d 09 6b 53 75 73 |ltiFinde|r}..kSus|
|000005f0| 70 65 6e 64 52 65 73 75 | 6d 65 4d 65 73 73 61 67 |pendResu|meMessag|
|00000600| 65 09 3d 20 31 3b 09 09 | 7b 68 69 67 68 20 62 79 |e.= 1;..|{high by|
|00000610| 74 65 20 6f 66 20 73 75 | 73 70 65 6e 64 2f 72 65 |te of su|spend/re|
|00000620| 73 75 6d 65 20 65 76 65 | 6e 74 20 6d 65 73 73 61 |sume eve|nt messa|
|00000630| 67 65 7d 0d 09 6b 52 65 | 73 75 6d 65 4d 61 73 6b |ge}..kRe|sumeMask|
|00000640| 09 09 09 09 3d 20 31 3b | 09 09 7b 62 69 74 20 6f |....= 1;|..{bit o|
|00000650| 66 20 6d 65 73 73 61 67 | 65 20 66 69 65 6c 64 20 |f messag|e field |
|00000660| 66 6f 72 20 72 65 73 75 | 6d 65 20 76 73 2e 20 73 |for resu|me vs. s|
|00000670| 75 73 70 65 6e 64 7d 0d | 09 0d 09 6b 43 52 09 09 |uspend}.|...kCR..|
|00000680| 09 09 3d 20 31 33 3b 09 | 09 09 09 7b 63 61 72 72 |..= 13;.|...{carr|
|00000690| 69 61 67 65 20 72 65 74 | 75 72 6e 20 63 68 61 72 |iage ret|urn char|
|000006a0| 61 63 74 65 72 7d 0d 09 | 6b 45 4e 54 45 52 09 09 |acter}..|kENTER..|
|000006b0| 09 3d 20 33 3b 09 09 09 | 09 7b 65 6e 74 65 72 20 |.= 3;...|.{enter |
|000006c0| 63 68 61 72 61 63 74 65 | 72 7d 0d 09 6b 53 63 72 |characte|r}..kScr|
|000006d0| 6f 6c 6c 42 61 72 57 69 | 64 74 68 09 3d 20 31 35 |ollBarWi|dth.= 15|
|000006e0| 3b 09 09 09 09 7b 74 68 | 65 20 77 69 64 74 68 20 |;....{th|e width |
|000006f0| 6f 66 20 74 68 65 20 73 | 63 72 6f 6c 6c 62 61 72 |of the s|crollbar|
|00000700| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 7d 0d 09 6b | in the |list}..k|
|00000710| 4c 69 73 74 49 6e 73 65 | 74 09 09 3d 20 2d 31 3b |ListInse|t..= -1;|
|00000720| 09 09 09 09 7b 61 64 6a | 75 73 74 6d 65 6e 74 20 |....{adj|ustment |
|00000730| 66 6f 72 20 6c 69 73 74 | 20 66 72 61 6d 65 7d 0d |for list| frame}.|
|00000740| 09 6b 41 54 50 54 69 6d | 65 4f 75 74 56 61 6c 09 |.kATPTim|eOutVal.|
|00000750| 3d 20 33 3b 09 09 09 09 | 7b 72 65 2d 74 72 79 20 |= 3;....|{re-try |
|00000760| 41 54 50 20 53 65 6e 64 | 52 65 71 75 65 73 74 20 |ATP Send|Request |
|00000770| 65 76 65 72 79 20 33 20 | 73 65 63 6f 6e 64 73 7d |every 3 |seconds}|
|00000780| 0d 09 6b 41 54 50 52 65 | 74 72 79 43 6f 75 6e 74 |..kATPRe|tryCount|
|00000790| 09 3d 20 35 3b 09 09 09 | 09 7b 66 6f 72 20 66 69 |.= 5;...|.{for fi|
|000007a0| 76 65 20 74 69 6d 65 73 | 7d 0d 09 6b 5a 6f 6e 65 |ve times|}..kZone|
|000007b0| 73 53 69 7a 65 09 09 3d | 20 35 37 38 3b 09 09 09 |sSize..=| 578;...|
|000007c0| 09 7b 73 69 7a 65 20 6f | 66 20 62 75 66 66 65 72 |.{size o|f buffer|
|000007d0| 20 66 6f 72 20 7a 6f 6e | 65 20 6e 61 6d 65 73 7d | for zon|e names}|
|000007e0| 0d 09 6b 47 5a 4c 43 61 | 6c 6c 09 09 3d 20 24 30 |..kGZLCa|ll..= $0|
|000007f0| 38 30 30 30 30 30 30 3b | 09 09 7b 47 65 74 5a 6f |8000000;|..{GetZo|
|00000800| 6e 65 4c 69 73 74 20 69 | 6e 64 69 63 61 74 6f 72 |neList i|ndicator|
|00000810| 7d 0d 09 6b 5a 49 50 53 | 6f 63 6b 65 74 09 09 3d |}..kZIPS|ocket..=|
|00000820| 20 36 3b 09 09 09 09 7b | 74 68 65 20 5a 6f 6e 65 | 6;....{|the Zone|
|00000830| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 50 72 6f | Informa|tion Pro|
|00000840| 74 6f 63 6f 6c 20 73 6f | 63 6b 65 74 7d 0d 09 6b |tocol so|cket}..k|
|00000850| 4d 6f 72 65 5a 6f 6e 65 | 73 09 09 3d 20 24 46 46 |MoreZone|s..= $FF|
|00000860| 30 30 30 30 30 30 3b 09 | 09 7b 6d 61 73 6b 20 74 |000000;.|.{mask t|
|00000870| 6f 20 73 65 65 20 69 66 | 20 6d 6f 72 65 20 7a 6f |o see if| more zo|
|00000880| 6e 65 73 20 74 6f 20 63 | 6f 6d 65 7d 0d 09 6b 5a |nes to c|ome}..kZ|
|00000890| 6f 6e 65 43 6f 75 6e 74 | 09 09 3d 20 24 30 30 30 |oneCount|..= $000|
|000008a0| 30 46 46 46 46 3b 09 09 | 7b 6d 61 73 6b 20 74 6f |0FFFF;..|{mask to|
|000008b0| 20 63 6f 75 6e 74 20 7a | 6f 6e 65 73 20 69 6e 20 | count z|ones in |
|000008c0| 62 75 66 66 65 72 7d 0d | 09 6b 48 69 6c 69 74 65 |buffer}.|.kHilite|
|000008d0| 09 09 09 3d 20 31 3b 09 | 09 09 09 7b 68 69 6c 69 |...= 1;.|...{hili|
|000008e0| 74 65 20 76 61 6c 75 65 | 20 66 6f 72 20 62 75 74 |te value| for but|
|000008f0| 74 6f 6e 20 63 6f 6e 74 | 72 6f 6c 7d 0d 09 6b 44 |ton cont|rol}..kD|
|00000900| 65 48 69 6c 69 74 65 09 | 09 3d 20 30 3b 09 09 09 |eHilite.|.= 0;...|
|00000910| 09 7b 64 65 68 69 6c 69 | 74 65 20 76 61 6c 75 65 |.{dehili|te value|
|00000920| 20 66 6f 72 20 62 75 74 | 74 6f 6e 20 63 6f 6e 74 | for but|ton cont|
|00000930| 72 6f 6c 7d 0d 09 6b 48 | 69 6c 69 74 65 44 65 6c |rol}..kH|iliteDel|
|00000940| 61 79 09 3d 20 35 3b 09 | 09 09 09 7b 74 69 6d 65 |ay.= 5;.|...{time|
|00000950| 20 69 6e 20 74 69 63 6b | 73 20 74 6f 20 6c 65 61 | in tick|s to lea|
|00000960| 76 65 20 62 75 74 74 6f | 6e 20 68 69 6c 69 74 65 |ve butto|n hilite|
|00000970| 64 7d 0d 09 0d 09 6b 4d | 69 6e 48 65 61 70 09 09 |d}....kM|inHeap..|
|00000980| 3d 20 30 3b 0d 09 6b 4d | 69 6e 53 70 61 63 65 09 |= 0;..kM|inSpace.|
|00000990| 09 3d 20 30 3b 0d 09 0d | 09 73 45 72 72 53 74 72 |.= 0;...|.sErrStr|
|000009a0| 69 6e 67 73 09 09 3d 20 | 31 32 38 3b 09 09 09 09 |ings..= |128;....|
|000009b0| 7b 65 72 72 6f 72 20 73 | 74 72 69 6e 67 20 53 54 |{error s|tring ST|
|000009c0| 52 23 7d 0d 09 65 53 74 | 61 6e 64 61 72 64 45 72 |R#}..eSt|andardEr|
|000009d0| 72 09 3d 20 31 3b 0d 09 | 65 57 72 6f 6e 67 4d 61 |r.= 1;..|eWrongMa|
|000009e0| 63 68 69 6e 65 09 3d 20 | 32 3b 0d 09 65 53 6d 61 |chine.= |2;..eSma|
|000009f0| 6c 6c 53 69 7a 65 09 09 | 3d 20 33 3b 0d 09 65 4e |llSize..|= 3;..eN|
|00000a00| 6f 4d 65 6d 6f 72 79 09 | 09 3d 20 34 3b 0d 09 65 |oMemory.|.= 4;..e|
|00000a10| 41 70 70 6c 65 54 61 6c | 6b 09 09 3d 20 35 3b 0d |AppleTal|k..= 5;.|
|00000a20| 09 65 4e 6f 5a 6f 6e 65 | 73 09 09 3d 20 36 3b 0d |.eNoZone|s..= 6;.|
|00000a30| 09 0d 09 72 41 62 6f 75 | 74 41 6c 65 72 74 09 09 |...rAbou|tAlert..|
|00000a40| 3d 20 31 32 38 3b 09 09 | 09 09 7b 61 62 6f 75 74 |= 128;..|..{about|
|00000a50| 20 61 6c 65 72 74 7d 0d | 09 72 5a 6f 6e 65 44 69 | alert}.|.rZoneDi|
|00000a60| 61 6c 6f 67 09 09 3d 20 | 31 32 39 3b 09 09 09 09 |alog..= |129;....|
|00000a70| 7b 7a 6f 6e 65 20 6c 69 | 73 74 20 64 69 61 6c 6f |{zone li|st dialo|
|00000a80| 67 7d 0d 09 64 5a 6f 6e | 65 4c 69 73 74 09 09 3d |g}..dZon|eList..=|
|00000a90| 20 32 3b 09 09 09 09 7b | 75 73 65 72 20 69 74 65 | 2;....{|user ite|
|00000aa0| 6d 20 74 68 61 74 20 69 | 73 20 7a 6f 6e 65 20 6c |m that i|s zone l|
|00000ab0| 69 73 74 7d 0d 09 64 44 | 65 66 61 75 6c 74 09 09 |ist}..dD|efault..|
|00000ac0| 3d 20 33 3b 09 09 09 09 | 7b 75 73 65 72 20 69 74 |= 3;....|{user it|
|00000ad0| 65 6d 20 74 68 61 74 20 | 69 73 20 64 65 66 61 75 |em that |is defau|
|00000ae0| 6c 74 20 69 6e 64 69 63 | 61 74 6f 72 7d 0d 09 72 |lt indic|ator}..r|
|00000af0| 55 73 65 72 41 6c 65 72 | 74 09 09 3d 20 31 33 30 |UserAler|t..= 130|
|00000b00| 3b 09 09 09 09 7b 65 72 | 72 6f 72 20 61 6c 65 72 |;....{er|ror aler|
|00000b10| 74 7d 0d 0d 09 72 4d 65 | 6e 75 42 61 72 09 09 3d |t}...rMe|nuBar..=|
|00000b20| 20 31 32 38 3b 09 09 09 | 09 7b 61 70 70 6c 69 63 | 128;...|.{applic|
|00000b30| 61 74 69 6f 6e 27 73 20 | 6d 65 6e 75 20 62 61 72 |ation's |menu bar|
|00000b40| 7d 0d 0d 09 6d 41 70 70 | 6c 65 09 09 09 3d 20 31 |}...mApp|le...= 1|
|00000b50| 32 38 3b 09 09 09 09 7b | 41 70 70 6c 65 20 6d 65 |28;....{|Apple me|
|00000b60| 6e 75 7d 0d 09 69 41 62 | 6f 75 74 09 09 09 3d 20 |nu}..iAb|out...= |
|00000b70| 31 3b 0d 0d 09 6d 46 69 | 6c 65 09 09 09 3d 20 31 |1;...mFi|le...= 1|
|00000b80| 32 39 3b 09 09 09 09 7b | 46 69 6c 65 20 6d 65 6e |29;....{|File men|
|00000b90| 75 7d 0d 09 69 4e 65 77 | 09 09 09 3d 20 31 3b 0d |u}..iNew|...= 1;.|
|00000ba0| 09 69 43 6c 6f 73 65 09 | 09 09 3d 20 34 3b 0d 09 |.iClose.|..= 4;..|
|00000bb0| 69 51 75 69 74 09 09 09 | 3d 20 31 32 3b 0d 0d 09 |iQuit...|= 12;...|
|00000bc0| 6d 45 64 69 74 09 09 09 | 3d 20 31 33 30 3b 09 09 |mEdit...|= 130;..|
|00000bd0| 09 09 7b 45 64 69 74 20 | 6d 65 6e 75 7d 0d 09 69 |..{Edit |menu}..i|
|00000be0| 55 6e 64 6f 09 09 09 3d | 20 31 3b 0d 09 69 43 75 |Undo...=| 1;..iCu|
|00000bf0| 74 09 09 09 3d 20 33 3b | 0d 09 69 43 6f 70 79 09 |t...= 3;|..iCopy.|
|00000c00| 09 09 3d 20 34 3b 0d 09 | 69 50 61 73 74 65 09 09 |..= 4;..|iPaste..|
|00000c10| 09 3d 20 35 3b 0d 09 69 | 43 6c 65 61 72 09 09 09 |.= 5;..i|Clear...|
|00000c20| 3d 20 36 3b 0d 09 0d 09 | 7b 31 2e 30 31 20 2d 20 |= 6;....|{1.01 - |
|00000c30| 6b 44 49 54 6f 70 20 61 | 6e 64 20 6b 44 49 4c 65 |kDITop a|nd kDILe|
|00000c40| 66 74 20 61 72 65 20 75 | 73 65 64 20 74 6f 20 6c |ft are u|sed to l|
|00000c50| 6f 63 61 74 65 20 74 68 | 65 20 44 69 73 6b 20 49 |ocate th|e Disk I|
|00000c60| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 20 64 69 |nitializ|ation di|
|00000c70| 61 6c 6f 67 73 2e 7d 0d | 09 6b 44 49 54 6f 70 09 |alogs.}.|.kDITop.|
|00000c80| 09 3d 20 24 30 30 35 30 | 3b 0d 09 6b 44 49 4c 65 |.= $0050|;..kDILe|
|00000c90| 66 74 09 09 3d 20 24 30 | 30 37 30 3b 0d 0d 0d 56 |ft..= $0|070;...V|
|00000ca0| 41 52 0d 09 67 4d 61 63 | 09 09 09 09 3a 20 53 79 |AR..gMac|....: Sy|
|00000cb0| 73 45 6e 76 52 65 63 3b | 09 7b 73 65 74 20 75 70 |sEnvRec;|.{set up|
|00000cc0| 20 62 79 20 49 6e 69 74 | 69 61 6c 69 7a 65 7d 0d | by Init|ialize}.|
|00000cd0| 09 67 48 61 73 57 61 69 | 74 4e 65 78 74 45 76 65 |.gHasWai|tNextEve|
|00000ce0| 6e 74 09 3a 20 42 4f 4f | 4c 45 41 4e 3b 09 09 7b |nt.: BOO|LEAN;..{|
|00000cf0| 73 65 74 20 75 70 20 62 | 79 20 49 6e 69 74 69 61 |set up b|y Initia|
|00000d00| 6c 69 7a 65 7d 0d 09 67 | 49 6e 42 61 63 6b 67 72 |lize}..g|InBackgr|
|00000d10| 6f 75 6e 64 09 09 3a 20 | 42 4f 4f 4c 45 41 4e 3b |ound..: |BOOLEAN;|
|00000d20| 09 09 7b 6d 61 69 6e 74 | 61 69 6e 65 64 20 62 79 |..{maint|ained by|
|00000d30| 20 49 6e 69 74 69 61 6c | 69 7a 65 20 61 6e 64 20 | Initial|ize and |
|00000d40| 44 6f 45 76 65 6e 74 7d | 0d 09 0d 09 67 4c 69 73 |DoEvent}|....gLis|
|00000d50| 74 09 09 09 09 3a 20 4c | 69 73 74 48 61 6e 64 6c |t....: L|istHandl|
|00000d60| 65 3b 09 7b 74 68 65 20 | 6c 69 73 74 20 74 6f 20 |e;.{the |list to |
|00000d70| 62 65 20 66 69 6c 6c 65 | 64 20 77 69 74 68 20 7a |be fille|d with z|
|00000d80| 6f 6e 65 20 6e 61 6d 65 | 73 7d 0d 0d 7b 24 53 20 |one name|s}..{$S |
|00000d90| 49 6e 69 74 69 61 6c 69 | 7a 65 7d 0d 46 55 4e 43 |Initiali|ze}.FUNC|
|00000da0| 54 49 4f 4e 20 54 72 61 | 70 41 76 61 69 6c 61 62 |TION Tra|pAvailab|
|00000db0| 6c 65 28 74 4e 75 6d 62 | 65 72 3a 20 49 4e 54 45 |le(tNumb|er: INTE|
|00000dc0| 47 45 52 3b 20 74 54 79 | 70 65 3a 20 54 72 61 70 |GER; tTy|pe: Trap|
|00000dd0| 54 79 70 65 29 3a 20 42 | 4f 4f 4c 45 41 4e 3b 0d |Type): B|OOLEAN;.|
|00000de0| 42 45 47 49 4e 0d 09 54 | 72 61 70 41 76 61 69 6c |BEGIN..T|rapAvail|
|00000df0| 61 62 6c 65 20 3a 3d 20 | 4e 47 65 74 54 72 61 70 |able := |NGetTrap|
|00000e00| 41 64 64 72 65 73 73 28 | 74 4e 75 6d 62 65 72 2c |Address(|tNumber,|
|00000e10| 20 74 54 79 70 65 29 20 | 3c 3e 20 47 65 74 54 72 | tType) |<> GetTr|
|00000e20| 61 70 41 64 64 72 65 73 | 73 28 5f 55 6e 69 6d 70 |apAddres|s(_Unimp|
|00000e30| 6c 65 6d 65 6e 74 65 64 | 29 3b 0d 45 4e 44 3b 20 |lemented|);.END; |
|00000e40| 7b 54 72 61 70 41 76 61 | 69 6c 61 62 6c 65 7d 0d |{TrapAva|ilable}.|
|00000e50| 0d 0d 7b 24 53 20 4d 61 | 69 6e 7d 0d 50 52 4f 43 |..{$S Ma|in}.PROC|
|00000e60| 45 44 55 52 45 20 46 61 | 69 6c 4f 53 45 72 72 4d |EDURE Fa|ilOSErrM|
|00000e70| 73 67 28 72 65 73 75 6c | 74 2c 20 6d 65 73 73 61 |sg(resul|t, messa|
|00000e80| 67 65 3a 20 49 4e 54 45 | 47 45 52 29 3b 0d 42 45 |ge: INTE|GER);.BE|
|00000e90| 47 49 4e 0d 09 49 46 20 | 72 65 73 75 6c 74 20 3c |GIN..IF |result <|
|00000ea0| 3e 20 6e 6f 45 72 72 20 | 54 48 45 4e 0d 09 09 46 |> noErr |THEN...F|
|00000eb0| 61 69 6c 75 72 65 28 72 | 65 73 75 6c 74 2c 20 6d |ailure(r|esult, m|
|00000ec0| 65 73 73 61 67 65 29 3b | 0d 45 4e 44 3b 20 7b 53 |essage);|.END; {S|
|00000ed0| 69 67 6e 61 6c 4f 53 45 | 72 72 4d 73 67 7d 0d 0d |ignalOSE|rrMsg}..|
|00000ee0| 0d 7b 24 53 20 4d 61 69 | 6e 7d 0d 50 52 4f 43 45 |.{$S Mai|n}.PROCE|
|00000ef0| 44 55 52 45 20 46 61 69 | 6c 4e 49 4c 4d 73 67 28 |DURE Fai|lNILMsg(|
|00000f00| 70 3a 20 55 4e 49 56 20 | 50 74 72 3b 20 6d 65 73 |p: UNIV |Ptr; mes|
|00000f10| 73 61 67 65 3a 20 49 4e | 54 45 47 45 52 29 3b 0d |sage: IN|TEGER);.|
|00000f20| 42 45 47 49 4e 0d 09 49 | 46 20 70 20 3d 20 4e 49 |BEGIN..I|F p = NI|
|00000f30| 4c 20 54 48 45 4e 0d 09 | 09 46 61 69 6c 75 72 65 |L THEN..|.Failure|
|00000f40| 28 6d 65 6d 46 75 6c 6c | 45 72 72 2c 20 6d 65 73 |(memFull|Err, mes|
|00000f50| 73 61 67 65 29 3b 0d 45 | 4e 44 3b 20 7b 46 61 69 |sage);.E|ND; {Fai|
|00000f60| 6c 4e 49 4c 4d 73 67 7d | 0d 0d 0d 7b 24 53 20 4d |lNILMsg}|...{$S M|
|00000f70| 61 69 6e 7d 0d 50 52 4f | 43 45 44 55 52 45 20 41 |ain}.PRO|CEDURE A|
|00000f80| 6c 65 72 74 55 73 65 72 | 28 65 72 72 6f 72 3a 20 |lertUser|(error: |
|00000f90| 49 4e 54 45 47 45 52 3b | 20 6d 65 73 73 61 67 65 |INTEGER;| message|
|00000fa0| 3a 20 4c 6f 6e 67 49 6e | 74 29 3b 0d 0d 7b 44 69 |: LongIn|t);..{Di|
|00000fb0| 73 70 6c 61 79 20 61 6e | 20 61 6c 65 72 74 20 74 |splay an| alert t|
|00000fc0| 6f 20 69 6e 66 6f 72 6d | 20 74 68 65 20 75 73 65 |o inform| the use|
|00000fd0| 72 20 6f 66 20 61 6e 20 | 65 72 72 6f 72 2e 20 4d |r of an |error. M|
|00000fe0| 65 73 73 61 67 65 20 61 | 63 74 73 20 61 73 20 61 |essage a|cts as a|
|00000ff0| 6e 20 0d 20 69 6e 64 65 | 78 20 69 6e 74 6f 20 61 |n . inde|x into a|
|00001000| 20 53 54 52 23 20 72 65 | 73 6f 75 72 63 65 20 6f | STR# re|source o|
|00001010| 66 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 |f error |messages|
|00001020| 2e 20 49 66 20 6e 6f 20 | 6d 65 73 73 61 67 65 20 |. If no |message |
|00001030| 69 73 20 67 69 76 65 6e | 2c 0d 20 69 2e 65 2e 20 |is given|,. i.e. |
|00001040| 3d 20 30 2c 20 74 68 65 | 6e 20 75 73 65 20 61 20 |= 0, the|n use a |
|00001050| 73 74 61 6e 64 61 72 64 | 20 6d 65 73 73 61 67 65 |standard| message|
|00001060| 2e 20 49 66 20 65 72 72 | 6f 72 20 69 73 20 6e 6f |. If err|or is no|
|00001070| 74 20 6e 6f 45 72 72 20 | 74 68 65 6e 0d 20 64 69 |t noErr |then. di|
|00001080| 73 70 6c 61 79 20 69 74 | 20 61 73 20 77 65 6c 6c |splay it| as well|
|00001090| 2e 7d 0d 0d 56 41 52 0d | 09 6d 73 67 31 2c 20 6d |.}..VAR.|.msg1, m|
|000010a0| 73 67 32 09 3a 20 53 74 | 72 32 35 35 3b 0d 09 69 |sg2.: St|r255;..i|
|000010b0| 74 65 6d 48 69 74 09 09 | 3a 20 49 4e 54 45 47 45 |temHit..|: INTEGE|
|000010c0| 52 3b 0d 42 45 47 49 4e | 0d 09 49 46 20 6d 65 73 |R;.BEGIN|..IF mes|
|000010d0| 73 61 67 65 20 3d 20 30 | 20 54 48 45 4e 20 6d 65 |sage = 0| THEN me|
|000010e0| 73 73 61 67 65 20 3a 3d | 20 65 53 74 61 6e 64 61 |ssage :=| eStanda|
|000010f0| 72 64 45 72 72 3b 0d 09 | 47 65 74 49 6e 64 53 74 |rdErr;..|GetIndSt|
|00001100| 72 69 6e 67 28 6d 73 67 | 31 2c 20 73 45 72 72 53 |ring(msg|1, sErrS|
|00001110| 74 72 69 6e 67 73 2c 20 | 6d 65 73 73 61 67 65 29 |trings, |message)|
|00001120| 3b 0d 09 49 46 20 65 72 | 72 6f 72 20 3d 20 6e 6f |;..IF er|ror = no|
|00001130| 45 72 72 20 54 48 45 4e | 0d 09 09 6d 73 67 32 20 |Err THEN|...msg2 |
|00001140| 3a 3d 20 27 27 0d 09 45 | 4c 53 45 0d 09 09 4e 75 |:= ''..E|LSE...Nu|
|00001150| 6d 54 6f 53 74 72 69 6e | 67 28 65 72 72 6f 72 2c |mToStrin|g(error,|
|00001160| 20 6d 73 67 32 29 3b 0d | 09 50 61 72 61 6d 54 65 | msg2);.|.ParamTe|
|00001170| 78 74 28 6d 73 67 31 2c | 20 6d 73 67 32 2c 20 27 |xt(msg1,| msg2, '|
|00001180| 27 2c 20 27 27 29 3b 0d | 09 69 74 65 6d 48 69 74 |', '');.|.itemHit|
|00001190| 20 3a 3d 20 41 6c 65 72 | 74 28 72 55 73 65 72 41 | := Aler|t(rUserA|
|000011a0| 6c 65 72 74 2c 20 4e 49 | 4c 29 3b 0d 45 4e 44 3b |lert, NI|L);.END;|
|000011b0| 20 7b 41 6c 65 72 74 55 | 73 65 72 7d 0d 0d 0d 7b | {AlertU|ser}...{|
|000011c0| 24 53 20 4d 61 69 6e 7d | 0d 46 55 4e 43 54 49 4f |$S Main}|.FUNCTIO|
|000011d0| 4e 20 49 73 44 41 57 69 | 6e 64 6f 77 28 77 69 6e |N IsDAWi|ndow(win|
|000011e0| 64 6f 77 3a 20 57 69 6e | 64 6f 77 50 74 72 29 3a |dow: Win|dowPtr):|
|000011f0| 20 42 4f 4f 4c 45 41 4e | 3b 0d 42 45 47 49 4e 0d | BOOLEAN|;.BEGIN.|
|00001200| 09 49 46 20 77 69 6e 64 | 6f 77 20 3d 20 4e 49 4c |.IF wind|ow = NIL|
|00001210| 20 54 48 45 4e 0d 09 09 | 49 73 44 41 57 69 6e 64 | THEN...|IsDAWind|
|00001220| 6f 77 20 3a 3d 20 46 41 | 4c 53 45 0d 09 45 4c 53 |ow := FA|LSE..ELS|
|00001230| 45 09 7b 44 41 20 77 69 | 6e 64 6f 77 73 20 68 61 |E.{DA wi|ndows ha|
|00001240| 76 65 20 6e 65 67 61 74 | 69 76 65 20 77 69 6e 64 |ve negat|ive wind|
|00001250| 6f 77 4b 69 6e 64 73 7d | 0d 09 09 49 73 44 41 57 |owKinds}|...IsDAW|
|00001260| 69 6e 64 6f 77 20 3a 3d | 20 57 69 6e 64 6f 77 50 |indow :=| WindowP|
|00001270| 65 65 6b 28 77 69 6e 64 | 6f 77 29 5e 2e 77 69 6e |eek(wind|ow)^.win|
|00001280| 64 6f 77 4b 69 6e 64 20 | 3c 20 30 3b 0d 45 4e 44 |dowKind |< 0;.END|
|00001290| 3b 20 7b 49 73 44 41 57 | 69 6e 64 6f 77 7d 0d 0d |; {IsDAW|indow}..|
|000012a0| 0d 7b 24 53 20 4d 61 69 | 6e 7d 0d 46 55 4e 43 54 |.{$S Mai|n}.FUNCT|
|000012b0| 49 4f 4e 20 49 73 41 70 | 70 57 69 6e 64 6f 77 28 |ION IsAp|pWindow(|
|000012c0| 77 69 6e 64 6f 77 3a 20 | 57 69 6e 64 6f 77 50 74 |window: |WindowPt|
|000012d0| 72 29 3a 20 42 4f 4f 4c | 45 41 4e 3b 0d 42 45 47 |r): BOOL|EAN;.BEG|
|000012e0| 49 4e 0d 09 49 46 20 77 | 69 6e 64 6f 77 20 3d 20 |IN..IF w|indow = |
|000012f0| 4e 49 4c 20 54 48 45 4e | 0d 09 09 49 73 41 70 70 |NIL THEN|...IsApp|
|00001300| 57 69 6e 64 6f 77 20 3a | 3d 20 46 41 4c 53 45 0d |Window :|= FALSE.|
|00001310| 09 45 4c 53 45 09 7b 61 | 70 70 6c 69 63 61 74 69 |.ELSE.{a|pplicati|
|00001320| 6f 6e 20 77 69 6e 64 6f | 77 73 20 68 61 76 65 20 |on windo|ws have |
|00001330| 77 69 6e 64 6f 77 4b 69 | 6e 64 73 20 3e 3d 20 75 |windowKi|nds >= u|
|00001340| 73 65 72 4b 69 6e 64 20 | 28 38 29 20 6f 72 20 64 |serKind |(8) or d|
|00001350| 69 61 6c 6f 67 4b 69 6e | 64 20 28 32 29 7d 0d 09 |ialogKin|d (2)}..|
|00001360| 09 57 49 54 48 20 57 69 | 6e 64 6f 77 50 65 65 6b |.WITH Wi|ndowPeek|
|00001370| 28 77 69 6e 64 6f 77 29 | 5e 20 44 4f 0d 09 09 09 |(window)|^ DO....|
|00001380| 49 73 41 70 70 57 69 6e | 64 6f 77 20 3a 3d 20 28 |IsAppWin|dow := (|
|00001390| 77 69 6e 64 6f 77 4b 69 | 6e 64 20 3e 3d 20 75 73 |windowKi|nd >= us|
|000013a0| 65 72 4b 69 6e 64 29 20 | 7c 20 28 77 69 6e 64 6f |erKind) || (windo|
|000013b0| 77 4b 69 6e 64 20 3d 20 | 64 69 61 6c 6f 67 4b 69 |wKind = |dialogKi|
|000013c0| 6e 64 29 3b 0d 45 4e 44 | 3b 20 7b 49 73 41 70 70 |nd);.END|; {IsApp|
|000013d0| 57 69 6e 64 6f 77 7d 0d | 0d 0d 7b 24 53 20 4d 61 |Window}.|..{$S Ma|
|000013e0| 69 6e 7d 0d 50 52 4f 43 | 45 44 55 52 45 20 42 75 |in}.PROC|EDURE Bu|
|000013f0| 69 6c 64 5a 6f 6e 65 4c | 69 73 74 3b 0d 0d 7b 43 |ildZoneL|ist;..{C|
|00001400| 72 65 61 74 65 20 74 68 | 65 20 6c 69 73 74 20 6f |reate th|e list o|
|00001410| 66 20 7a 6f 6e 65 73 20 | 6f 6e 20 74 68 65 20 6e |f zones |on the n|
|00001420| 65 74 77 6f 72 6b 2e 20 | 46 69 6e 64 20 61 20 62 |etwork. |Find a b|
|00001430| 72 69 64 67 65 20 74 6f | 20 74 61 6c 6b 20 74 6f |ridge to| talk to|
|00001440| 20 2c 20 69 66 20 6f 6e | 65 20 69 73 0d 20 70 72 | , if on|e is. pr|
|00001450| 65 73 65 6e 74 2c 20 74 | 68 65 6e 20 61 73 6b 20 |esent, t|hen ask |
|00001460| 69 74 20 66 6f 72 20 7a | 6f 6e 65 20 6e 61 6d 65 |it for z|one name|
|00001470| 73 2e 20 41 64 64 20 74 | 68 65 20 6e 61 6d 65 73 |s. Add t|he names|
|00001480| 20 74 6f 20 74 68 65 20 | 6c 69 73 74 20 69 6e 20 | to the |list in |
|00001490| 74 68 65 20 64 69 61 6c | 6f 67 2e 7d 0d 0d 56 41 |the dial|og.}..VA|
|000014a0| 52 0d 09 64 41 54 50 50 | 42 70 74 72 09 09 09 09 |R..dATPP|Bptr....|
|000014b0| 09 3a 20 41 54 50 50 42 | 70 74 72 3b 09 09 7b 74 |.: ATPPB|ptr;..{t|
|000014c0| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 62 6c 6f |he param|eter blo|
|000014d0| 63 6b 20 66 6f 72 20 47 | 65 74 5a 6f 6e 65 4c 69 |ck for G|etZoneLi|
|000014e0| 73 74 20 63 61 6c 6c 7d | 0d 09 64 42 44 53 09 09 |st call}|..dBDS..|
|000014f0| 09 09 09 09 3a 20 42 44 | 53 45 6c 65 6d 65 6e 74 |....: BD|SElement|
|00001500| 3b 09 7b 74 68 65 20 42 | 44 53 20 66 6f 72 20 47 |;.{the B|DS for G|
|00001510| 65 74 5a 6f 6e 65 4c 69 | 73 74 20 63 61 6c 6c 7d |etZoneLi|st call}|
|00001520| 0d 09 64 5a 6f 6e 65 73 | 2c 20 64 43 75 72 72 09 |..dZones|, dCurr.|
|00001530| 09 09 09 3a 20 50 74 72 | 3b 09 09 09 7b 74 68 65 |...: Ptr|;...{the|
|00001540| 20 64 61 74 61 20 62 75 | 66 66 65 72 20 66 6f 72 | data bu|ffer for|
|00001550| 20 47 65 74 5a 6f 6e 65 | 4c 69 73 74 20 63 61 6c | GetZone|List cal|
|00001560| 6c 7d 0d 09 64 49 6e 64 | 65 78 2c 20 64 43 6f 75 |l}..dInd|ex, dCou|
|00001570| 6e 74 2c 20 64 4e 6f 64 | 65 2c 20 64 4e 65 74 09 |nt, dNod|e, dNet.|
|00001580| 3a 20 49 4e 54 45 47 45 | 52 3b 0d 09 69 67 6e 6f |: INTEGE|R;..igno|
|00001590| 72 65 09 09 09 09 09 09 | 3a 20 49 4e 54 45 47 45 |re......|: INTEGE|
|000015a0| 52 3b 0d 09 63 53 69 7a | 65 09 09 09 09 09 09 3a |R;..cSiz|e......:|
|000015b0| 20 50 6f 69 6e 74 3b 0d | 09 66 69 09 09 09 09 09 | Point;.|.fi.....|
|000015c0| 09 09 3a 20 46 61 69 6c | 49 6e 66 6f 3b 0d 09 0d |..: Fail|Info;...|
|000015d0| 09 50 52 4f 43 45 44 55 | 52 45 20 43 6c 65 61 6e |.PROCEDU|RE Clean|
|000015e0| 55 70 3b 0d 09 42 45 47 | 49 4e 0d 09 09 49 46 20 |Up;..BEG|IN...IF |
|000015f0| 64 41 54 50 50 42 70 74 | 72 20 3c 3e 20 4e 49 4c |dATPPBpt|r <> NIL|
|00001600| 20 54 48 45 4e 0d 09 09 | 09 44 69 73 70 6f 73 50 | THEN...|.DisposP|
|00001610| 74 72 28 50 74 72 28 64 | 41 54 50 50 42 70 74 72 |tr(Ptr(d|ATPPBptr|
|00001620| 29 29 3b 09 09 09 09 09 | 7b 67 65 74 20 72 69 64 |));.....|{get rid|
|00001630| 20 6f 66 20 70 62 20 62 | 6c 6f 63 6b 7d 0d 09 09 | of pb b|lock}...|
|00001640| 49 46 20 64 5a 6f 6e 65 | 73 20 3c 3e 20 4e 49 4c |IF dZone|s <> NIL|
|00001650| 20 54 48 45 4e 0d 09 09 | 09 44 69 73 70 6f 73 50 | THEN...|.DisposP|
|00001660| 74 72 28 64 5a 6f 6e 65 | 73 29 3b 09 09 09 09 09 |tr(dZone|s);.....|
|00001670| 09 09 7b 61 6e 64 20 62 | 75 66 66 65 72 7d 0d 09 |..{and b|uffer}..|
|00001680| 45 4e 44 3b 20 7b 43 6c | 65 61 6e 55 70 7d 0d 09 |END; {Cl|eanUp}..|
|00001690| 0d 09 50 52 4f 43 45 44 | 55 52 45 20 48 61 6e 64 |..PROCED|URE Hand|
|000016a0| 6c 65 45 72 72 28 65 72 | 72 6f 72 3a 20 49 4e 54 |leErr(er|ror: INT|
|000016b0| 45 47 45 52 3b 20 6d 65 | 73 73 61 67 65 3a 20 4c |EGER; me|ssage: L|
|000016c0| 6f 6e 67 49 6e 74 29 3b | 0d 09 42 45 47 49 4e 0d |ongInt);|..BEGIN.|
|000016d0| 09 09 43 6c 65 61 6e 55 | 70 3b 09 09 09 09 09 09 |..CleanU|p;......|
|000016e0| 09 09 09 09 7b 67 65 74 | 20 72 69 64 20 6f 66 20 |....{get| rid of |
|000016f0| 61 6c 6c 6f 63 61 74 65 | 64 20 6a 75 6e 6b 7d 0d |allocate|d junk}.|
|00001700| 09 45 4e 44 3b 0d 09 0d | 42 45 47 49 4e 0d 09 64 |.END;...|BEGIN..d|
|00001710| 41 54 50 50 42 70 74 72 | 20 3a 3d 20 4e 49 4c 3b |ATPPBptr| := NIL;|
|00001720| 09 09 09 09 09 09 09 09 | 09 7b 69 6e 69 74 20 73 |........|.{init s|
|00001730| 6f 6d 65 20 69 6d 70 6f | 72 74 61 6e 74 20 76 61 |ome impo|rtant va|
|00001740| 72 69 61 62 6c 65 73 7d | 0d 09 64 5a 6f 6e 65 73 |riables}|..dZones|
|00001750| 20 3a 3d 20 4e 49 4c 3b | 0d 09 43 61 74 63 68 46 | := NIL;|..CatchF|
|00001760| 61 69 6c 75 72 65 73 28 | 66 69 2c 20 48 61 6e 64 |ailures(|fi, Hand|
|00001770| 6c 65 45 72 72 29 3b 0d | 09 0d 09 64 41 54 50 50 |leErr);.|...dATPP|
|00001780| 42 70 74 72 20 3a 3d 20 | 41 54 50 50 42 70 74 72 |Bptr := |ATPPBptr|
|00001790| 28 4e 65 77 50 74 72 28 | 53 49 5a 45 4f 46 28 41 |(NewPtr(|SIZEOF(A|
|000017a0| 54 50 50 61 72 61 6d 42 | 6c 6f 63 6b 29 29 29 3b |TPParamB|lock)));|
|000017b0| 0d 09 46 61 69 6c 4e 49 | 4c 4d 73 67 28 64 41 54 |..FailNI|LMsg(dAT|
|000017c0| 50 50 42 70 74 72 2c 20 | 65 4e 6f 4d 65 6d 6f 72 |PPBptr, |eNoMemor|
|000017d0| 79 29 3b 0d 09 64 5a 6f | 6e 65 73 20 3a 3d 20 4e |y);..dZo|nes := N|
|000017e0| 65 77 50 74 72 28 6b 5a | 6f 6e 65 73 53 69 7a 65 |ewPtr(kZ|onesSize|
|000017f0| 29 3b 0d 09 46 61 69 6c | 4e 49 4c 4d 73 67 28 64 |);..Fail|NILMsg(d|
|00001800| 5a 6f 6e 65 73 2c 20 65 | 4e 6f 4d 65 6d 6f 72 79 |Zones, e|NoMemory|
|00001810| 29 3b 0d 09 57 49 54 48 | 20 64 42 44 53 20 44 4f |);..WITH| dBDS DO|
|00001820| 20 42 45 47 49 4e 09 09 | 09 09 09 09 09 09 09 7b | BEGIN..|.......{|
|00001830| 73 65 74 20 75 70 20 42 | 44 53 7d 0d 09 09 62 75 |set up B|DS}...bu|
|00001840| 66 66 53 69 7a 65 20 3a | 3d 20 6b 5a 6f 6e 65 73 |ffSize :|= kZones|
|00001850| 53 69 7a 65 3b 0d 09 09 | 62 75 66 66 50 74 72 20 |Size;...|buffPtr |
|00001860| 3a 3d 20 64 5a 6f 6e 65 | 73 3b 0d 09 09 45 4e 44 |:= dZone|s;...END|
|00001870| 3b 0d 09 57 49 54 48 20 | 64 41 54 50 50 42 70 74 |;..WITH |dATPPBpt|
|00001880| 72 5e 20 44 4f 20 42 45 | 47 49 4e 09 09 09 09 09 |r^ DO BE|GIN.....|
|00001890| 09 09 7b 73 65 74 20 75 | 70 20 70 62 20 62 6c 6f |..{set u|p pb blo|
|000018a0| 63 6b 7d 0d 09 09 61 74 | 70 46 6c 61 67 73 20 3a |ck}...at|pFlags :|
|000018b0| 3d 20 30 3b 0d 09 09 46 | 61 69 6c 4f 53 45 72 72 |= 0;...F|ailOSErr|
|000018c0| 4d 73 67 28 47 65 74 4e | 6f 64 65 41 64 64 72 65 |Msg(GetN|odeAddre|
|000018d0| 73 73 28 69 67 6e 6f 72 | 65 2c 0d 09 09 09 61 64 |ss(ignor|e,....ad|
|000018e0| 64 72 42 6c 6f 63 6b 2e | 61 4e 65 74 29 2c 20 65 |drBlock.|aNet), e|
|000018f0| 41 70 70 6c 65 54 61 6c | 6b 29 3b 09 09 09 09 7b |AppleTal|k);....{|
|00001900| 67 65 74 20 6e 65 74 20 | 6f 66 20 62 72 69 64 67 |get net |of bridg|
|00001910| 65 7d 0d 09 09 49 46 20 | 61 64 64 72 42 6c 6f 63 |e}...IF |addrBloc|
|00001920| 6b 2e 61 4e 65 74 20 3d | 20 30 20 54 48 45 4e 0d |k.aNet =| 0 THEN.|
|00001930| 09 09 09 46 61 69 6c 75 | 72 65 28 30 2c 20 65 4e |...Failu|re(0, eN|
|00001940| 6f 5a 6f 6e 65 73 29 3b | 09 09 09 09 09 09 7b 62 |oZones);|......{b|
|00001950| 61 69 6c 20 69 66 20 6e | 6f 20 7a 6f 6e 65 73 20 |ail if n|o zones |
|00001960| 70 72 65 73 65 6e 74 7d | 0d 09 09 61 64 64 72 42 |present}|...addrB|
|00001970| 6c 6f 63 6b 2e 61 4e 6f | 64 65 20 3a 3d 20 47 65 |lock.aNo|de := Ge|
|00001980| 74 42 72 69 64 67 65 41 | 64 64 72 65 73 73 3b 09 |tBridgeA|ddress;.|
|00001990| 09 09 7b 67 65 74 20 6e | 6f 64 65 20 6f 66 20 62 |..{get n|ode of b|
|000019a0| 72 69 64 67 65 7d 0d 09 | 09 61 64 64 72 42 6c 6f |ridge}..|.addrBlo|
|000019b0| 63 6b 2e 61 53 6f 63 6b | 65 74 20 3a 3d 20 6b 5a |ck.aSock|et := kZ|
|000019c0| 49 50 53 6f 63 6b 65 74 | 3b 09 09 09 09 7b 74 68 |IPSocket|;....{th|
|000019d0| 65 20 73 6f 63 6b 65 74 | 20 77 65 20 77 61 6e 74 |e socket| we want|
|000019e0| 7d 0d 09 09 72 65 71 4c | 65 6e 67 74 68 20 3a 3d |}...reqL|ength :=|
|000019f0| 20 30 3b 0d 09 09 72 65 | 71 50 6f 69 6e 74 65 72 | 0;...re|qPointer|
|00001a00| 20 3a 3d 20 4e 49 4c 3b | 0d 09 09 62 64 73 50 6f | := NIL;|...bdsPo|
|00001a10| 69 6e 74 65 72 20 3a 3d | 20 40 64 42 44 53 3b 0d |inter :=| @dBDS;.|
|00001a20| 09 09 6e 75 6d 4f 66 42 | 75 66 66 73 20 3a 3d 20 |..numOfB|uffs := |
|00001a30| 31 3b 0d 09 09 74 69 6d | 65 4f 75 74 56 61 6c 20 |1;...tim|eOutVal |
|00001a40| 3a 3d 20 6b 41 54 50 54 | 69 6d 65 4f 75 74 56 61 |:= kATPT|imeOutVa|
|00001a50| 6c 3b 0d 09 09 72 65 74 | 72 79 43 6f 75 6e 74 20 |l;...ret|ryCount |
|00001a60| 3a 3d 20 6b 41 54 50 52 | 65 74 72 79 43 6f 75 6e |:= kATPR|etryCoun|
|00001a70| 74 3b 0d 09 09 45 4e 44 | 3b 0d 09 64 49 6e 64 65 |t;...END|;..dInde|
|00001a80| 78 20 3a 3d 20 31 3b 0d | 09 64 43 6f 75 6e 74 20 |x := 1;.|.dCount |
|00001a90| 3a 3d 20 30 3b 0d 09 53 | 65 74 50 74 28 63 53 69 |:= 0;..S|etPt(cSi|
|00001aa0| 7a 65 2c 20 30 2c 20 30 | 29 3b 09 09 09 09 09 09 |ze, 0, 0|);......|
|00001ab0| 09 09 09 7b 77 65 20 61 | 6c 77 61 79 73 20 73 74 |...{we a|lways st|
|00001ac0| 75 66 66 20 69 6e 74 6f | 20 66 69 72 73 74 7d 0d |uff into| first}.|
|00001ad0| 09 52 45 50 45 41 54 0d | 09 09 64 41 54 50 50 42 |.REPEAT.|..dATPPB|
|00001ae0| 70 74 72 5e 2e 75 73 65 | 72 44 61 74 61 20 3a 3d |ptr^.use|rData :=|
|00001af0| 20 6b 47 5a 4c 43 61 6c | 6c 20 2b 20 64 49 6e 64 | kGZLCal|l + dInd|
|00001b00| 65 78 3b 09 09 7b 69 6e | 64 69 63 61 74 65 20 47 |ex;..{in|dicate G|
|00001b10| 65 74 5a 6f 6e 65 4c 69 | 73 74 20 72 65 71 75 65 |etZoneLi|st reque|
|00001b20| 73 74 7d 0d 09 09 46 61 | 69 6c 4f 53 45 72 72 4d |st}...Fa|ilOSErrM|
|00001b30| 73 67 28 50 53 65 6e 64 | 52 65 71 75 65 73 74 28 |sg(PSend|Request(|
|00001b40| 64 41 54 50 50 42 70 74 | 72 2c 0d 09 09 09 46 41 |dATPPBpt|r,....FA|
|00001b50| 4c 53 45 29 2c 20 65 41 | 70 70 6c 65 54 61 6c 6b |LSE), eA|ppleTalk|
|00001b60| 29 3b 09 09 09 09 09 09 | 7b 73 65 6e 64 20 73 79 |);......|{send sy|
|00001b70| 6e 63 20 72 65 71 75 65 | 73 74 7d 0d 09 09 64 43 |nc reque|st}...dC|
|00001b80| 6f 75 6e 74 20 3a 3d 20 | 64 43 6f 75 6e 74 20 2b |ount := |dCount +|
|00001b90| 20 42 41 4e 44 28 64 42 | 44 53 2e 75 73 65 72 42 | BAND(dB|DS.userB|
|00001ba0| 79 74 65 73 2c 0d 09 09 | 09 09 09 6b 5a 6f 6e 65 |ytes,...|...kZone|
|00001bb0| 43 6f 75 6e 74 29 3b 09 | 09 09 09 09 09 7b 66 69 |Count);.|.....{fi|
|00001bc0| 6e 64 20 6f 75 74 20 68 | 6f 77 20 6d 61 6e 79 20 |nd out h|ow many |
|00001bd0| 72 65 74 75 72 6e 65 64 | 7d 0d 09 09 64 43 75 72 |returned|}...dCur|
|00001be0| 72 20 3a 3d 20 64 5a 6f | 6e 65 73 3b 09 09 09 09 |r := dZo|nes;....|
|00001bf0| 09 09 09 09 7b 70 75 74 | 20 63 75 72 72 65 6e 74 |....{put| current|
|00001c00| 20 70 6f 69 6e 74 65 72 | 20 61 74 20 73 74 61 72 | pointer| at star|
|00001c10| 74 7d 0d 09 09 52 45 50 | 45 41 54 09 09 09 09 09 |t}...REP|EAT.....|
|00001c20| 09 09 09 09 09 09 7b 67 | 65 74 20 65 61 63 68 20 |......{g|et each |
|00001c30| 7a 6f 6e 65 7d 0d 09 09 | 09 69 67 6e 6f 72 65 20 |zone}...|.ignore |
|00001c40| 3a 3d 20 4c 41 64 64 52 | 6f 77 28 31 2c 20 30 2c |:= LAddR|ow(1, 0,|
|00001c50| 20 67 4c 69 73 74 29 3b | 09 09 09 09 7b 63 72 65 | gList);|....{cre|
|00001c60| 61 74 65 20 6e 65 77 20 | 63 65 6c 6c 20 61 74 20 |ate new |cell at |
|00001c70| 73 74 61 72 74 7d 0d 09 | 09 09 4c 53 65 74 43 65 |start}..|..LSetCe|
|00001c80| 6c 6c 28 50 4f 49 4e 54 | 45 52 28 4f 52 44 34 28 |ll(POINT|ER(ORD4(|
|00001c90| 64 43 75 72 72 29 20 2b | 20 31 29 2c 20 64 43 75 |dCurr) +| 1), dCu|
|00001ca0| 72 72 5e 2c 0d 09 09 09 | 09 09 09 63 53 69 7a 65 |rr^,....|...cSize|
|00001cb0| 2c 20 67 4c 69 73 74 29 | 3b 09 09 09 09 09 7b 73 |, gList)|;.....{s|
|00001cc0| 74 75 66 66 20 69 6e 20 | 7a 6f 6e 65 7d 0d 09 09 |tuff in |zone}...|
|00001cd0| 09 64 43 75 72 72 20 3a | 3d 20 50 4f 49 4e 54 45 |.dCurr :|= POINTE|
|00001ce0| 52 28 4f 52 44 34 28 64 | 43 75 72 72 29 20 2b 20 |R(ORD4(d|Curr) + |
|00001cf0| 64 43 75 72 72 5e 2b 31 | 29 3b 09 7b 62 75 6d 70 |dCurr^+1|);.{bump|
|00001d00| 20 75 70 20 63 75 72 72 | 65 6e 74 20 70 6f 69 6e | up curr|ent poin|
|00001d10| 74 65 72 7d 0d 09 09 09 | 64 49 6e 64 65 78 20 3a |ter}....|dIndex :|
|00001d20| 3d 20 64 49 6e 64 65 78 | 20 2b 20 31 3b 09 09 09 |= dIndex| + 1;...|
|00001d30| 09 09 09 7b 69 6e 63 72 | 65 6d 65 6e 74 20 77 68 |...{incr|ement wh|
|00001d40| 69 63 68 20 7a 6f 6e 65 | 7d 0d 09 09 55 4e 54 49 |ich zone|}...UNTI|
|00001d50| 4c 20 64 49 6e 64 65 78 | 20 3e 20 64 43 6f 75 6e |L dIndex| > dCoun|
|00001d60| 74 3b 0d 09 55 4e 54 49 | 4c 20 28 42 41 4e 44 28 |t;..UNTI|L (BAND(|
|00001d70| 64 42 44 53 2e 75 73 65 | 72 42 79 74 65 73 2c 20 |dBDS.use|rBytes, |
|00001d80| 6b 4d 6f 72 65 5a 6f 6e | 65 73 29 20 3c 3e 20 30 |kMoreZon|es) <> 0|
|00001d90| 29 3b 09 09 7b 6b 65 65 | 70 20 67 6f 69 6e 67 20 |);..{kee|p going |
|00001da0| 75 6e 74 69 6c 20 6e 6f | 6e 65 20 6c 65 66 74 7d |until no|ne left}|
|00001db0| 0d 09 43 6c 65 61 6e 55 | 70 3b 0d 09 0d 09 53 75 |..CleanU|p;....Su|
|00001dc0| 63 63 65 73 73 28 66 69 | 29 3b 0d 45 4e 44 3b 20 |ccess(fi|);.END; |
|00001dd0| 7b 42 75 69 6c 64 5a 6f | 6e 65 4c 69 73 74 7d 0d |{BuildZo|neList}.|
|00001de0| 0d 0d 7b 24 53 20 4d 61 | 69 6e 7d 0d 50 52 4f 43 |..{$S Ma|in}.PROC|
|00001df0| 45 44 55 52 45 20 5a 6f | 6e 65 4c 69 73 74 44 72 |EDURE Zo|neListDr|
|00001e00| 61 77 28 64 6c 67 3a 20 | 44 69 61 6c 6f 67 50 74 |aw(dlg: |DialogPt|
|00001e10| 72 3b 20 69 74 65 6d 3a | 20 49 4e 54 45 47 45 52 |r; item:| INTEGER|
|00001e20| 29 3b 0d 0d 7b 54 68 65 | 20 75 73 65 72 20 69 74 |);..{The| user it|
|00001e30| 65 6d 20 70 72 6f 63 65 | 64 75 72 65 20 66 6f 72 |em proce|dure for|
|00001e40| 20 74 68 65 20 7a 6f 6e | 65 20 6c 69 73 74 20 75 | the zon|e list u|
|00001e50| 73 65 72 20 69 74 65 6d | 20 61 6e 64 20 64 65 66 |ser item| and def|
|00001e60| 61 75 6c 74 0d 20 62 6f | 78 20 75 73 65 72 20 69 |ault. bo|x user i|
|00001e70| 74 65 6d 20 69 6e 20 74 | 68 65 20 64 69 61 6c 6f |tem in t|he dialo|
|00001e80| 67 2e 20 44 72 61 77 20 | 74 68 65 20 6c 69 73 74 |g. Draw |the list|
|00001e90| 20 61 6e 64 20 74 68 65 | 20 66 72 61 6d 65 20 74 | and the| frame t|
|00001ea0| 68 61 74 20 67 6f 65 73 | 20 77 69 74 68 20 69 74 |hat goes| with it|
|00001eb0| 2e 0d 20 44 72 61 77 20 | 74 68 65 20 64 65 66 61 |.. Draw |the defa|
|00001ec0| 75 6c 74 20 62 6f 78 20 | 61 72 6f 75 6e 64 20 74 |ult box |around t|
|00001ed0| 68 65 20 4f 4b 20 62 75 | 74 74 6f 6e 2e 7d 0d 0d |he OK bu|tton.}..|
|00001ee0| 56 41 52 0d 09 70 6f 72 | 74 09 3a 20 47 72 61 66 |VAR..por|t.: Graf|
|00001ef0| 50 74 72 3b 0d 09 6b 69 | 6e 64 09 3a 20 49 4e 54 |Ptr;..ki|nd.: INT|
|00001f00| 45 47 45 52 3b 0d 09 68 | 09 09 3a 20 48 61 6e 64 |EGER;..h|..: Hand|
|00001f10| 6c 65 3b 0d 09 72 09 09 | 3a 20 52 65 63 74 3b 0d |le;..r..|: Rect;.|
|00001f20| 09 70 73 09 09 3a 20 50 | 65 6e 53 74 61 74 65 3b |.ps..: P|enState;|
|00001f30| 0d 09 0d 42 45 47 49 4e | 0d 09 47 65 74 50 6f 72 |...BEGIN|..GetPor|
|00001f40| 74 28 70 6f 72 74 29 3b | 09 09 09 09 09 09 09 09 |t(port);|........|
|00001f50| 09 7b 73 61 76 65 20 6f | 6c 64 20 70 6f 72 74 7d |.{save o|ld port}|
|00001f60| 0d 09 53 65 74 50 6f 72 | 74 28 64 6c 67 29 3b 09 |..SetPor|t(dlg);.|
|00001f70| 09 09 09 09 09 09 09 09 | 7b 6d 61 6b 65 20 64 69 |........|{make di|
|00001f80| 61 6c 6f 67 20 70 6f 72 | 74 7d 0d 09 43 41 53 45 |alog por|t}..CASE|
|00001f90| 20 69 74 65 6d 20 4f 46 | 0d 09 64 5a 6f 6e 65 4c | item OF|..dZoneL|
|00001fa0| 69 73 74 3a 20 42 45 47 | 49 4e 0d 09 09 09 4c 55 |ist: BEG|IN....LU|
|00001fb0| 70 64 61 74 65 28 64 6c | 67 5e 2e 76 69 73 52 67 |pdate(dl|g^.visRg|
|00001fc0| 6e 2c 20 67 4c 69 73 74 | 29 3b 09 09 09 7b 72 65 |n, gList|);...{re|
|00001fd0| 2d 64 72 61 77 20 6c 69 | 73 74 7d 0d 09 09 09 47 |-draw li|st}....G|
|00001fe0| 65 74 44 49 74 65 6d 28 | 64 6c 67 2c 20 64 5a 6f |etDItem(|dlg, dZo|
|00001ff0| 6e 65 4c 69 73 74 2c 20 | 6b 69 6e 64 2c 20 68 2c |neList, |kind, h,|
|00002000| 20 72 29 3b 0d 09 09 09 | 49 6e 73 65 74 52 65 63 | r);....|InsetRec|
|00002010| 74 28 72 2c 20 6b 4c 69 | 73 74 49 6e 73 65 74 2c |t(r, kLi|stInset,|
|00002020| 20 6b 4c 69 73 74 49 6e | 73 65 74 29 3b 0d 09 09 | kListIn|set);...|
|00002030| 09 46 72 61 6d 65 52 65 | 63 74 28 72 29 3b 09 09 |.FrameRe|ct(r);..|
|00002040| 09 09 09 09 09 7b 72 65 | 2d 64 72 61 77 20 66 72 |.....{re|-draw fr|
|00002050| 61 6d 65 7d 0d 09 09 45 | 4e 44 3b 0d 09 64 44 65 |ame}...E|ND;..dDe|
|00002060| 66 61 75 6c 74 3a 20 42 | 45 47 49 4e 0d 09 09 09 |fault: B|EGIN....|
|00002070| 47 65 74 44 49 74 65 6d | 28 64 6c 67 2c 20 64 44 |GetDItem|(dlg, dD|
|00002080| 65 66 61 75 6c 74 2c 20 | 6b 69 6e 64 2c 20 68 2c |efault, |kind, h,|
|00002090| 20 72 29 3b 0d 09 09 09 | 47 65 74 50 65 6e 53 74 | r);....|GetPenSt|
|000020a0| 61 74 65 28 70 73 29 3b | 0d 09 09 09 50 65 6e 53 |ate(ps);|....PenS|
|000020b0| 69 7a 65 28 33 2c 20 33 | 29 3b 0d 09 09 09 49 6e |ize(3, 3|);....In|
|000020c0| 73 65 74 52 65 63 74 28 | 72 2c 20 2d 34 2c 20 2d |setRect(|r, -4, -|
|000020d0| 34 29 3b 0d 09 09 09 46 | 72 61 6d 65 52 6f 75 6e |4);....F|rameRoun|
|000020e0| 64 52 65 63 74 28 72 2c | 20 31 36 2c 20 31 36 29 |dRect(r,| 16, 16)|
|000020f0| 3b 09 09 09 09 7b 64 72 | 61 77 20 64 65 66 61 75 |;....{dr|aw defau|
|00002100| 6c 74 20 62 6f 78 7d 0d | 09 09 09 53 65 74 50 65 |lt box}.|...SetPe|
|00002110| 6e 53 74 61 74 65 28 70 | 73 29 3b 0d 09 09 45 4e |nState(p|s);...EN|
|00002120| 44 3b 0d 09 45 4e 44 3b | 0d 09 53 65 74 50 6f 72 |D;..END;|..SetPor|
|00002130| 74 28 70 6f 72 74 29 3b | 09 09 09 09 09 09 09 09 |t(port);|........|
|00002140| 09 7b 72 65 73 74 6f 72 | 65 20 6f 6c 64 20 70 6f |.{restor|e old po|
|00002150| 72 74 7d 0d 45 4e 44 3b | 20 7b 5a 6f 6e 65 4c 69 |rt}.END;| {ZoneLi|
|00002160| 73 74 44 72 61 77 7d 0d | 0d 0d 7b 24 53 20 4d 61 |stDraw}.|..{$S Ma|
|00002170| 69 6e 7d 0d 46 55 4e 43 | 54 49 4f 4e 20 4c 69 73 |in}.FUNC|TION Lis|
|00002180| 74 46 69 6c 74 65 72 20 | 28 64 6c 67 3a 20 44 69 |tFilter |(dlg: Di|
|00002190| 61 6c 6f 67 50 74 72 3b | 20 56 41 52 20 65 76 65 |alogPtr;| VAR eve|
|000021a0| 6e 74 3a 20 45 76 65 6e | 74 52 65 63 6f 72 64 3b |nt: Even|tRecord;|
|000021b0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 56 41 52 20 |........|....VAR |
|000021c0| 69 74 65 6d 3a 20 49 4e | 54 45 47 45 52 29 20 3a |item: IN|TEGER) :|
|000021d0| 20 42 4f 4f 4c 45 41 4e | 3b 0d 0d 7b 50 61 73 73 | BOOLEAN|;..{Pass|
|000021e0| 65 64 20 61 73 20 70 61 | 72 61 6d 65 74 65 72 20 |ed as pa|rameter |
|000021f0| 74 6f 20 4d 6f 64 61 6c | 44 69 61 6c 6f 67 2e 20 |to Modal|Dialog. |
|00002200| 48 61 6e 64 6c 65 20 6b | 65 79 20 70 72 65 73 73 |Handle k|ey press|
|00002210| 65 73 20 61 6e 64 20 6d | 6f 75 73 65 20 63 6c 69 |es and m|ouse cli|
|00002220| 63 6b 73 0d 20 66 72 6f | 6d 20 74 68 65 20 75 73 |cks. fro|m the us|
|00002230| 65 72 2e 20 44 6f 20 61 | 6c 6c 20 74 68 65 20 72 |er. Do a|ll the r|
|00002240| 69 67 68 74 20 64 65 66 | 61 75 6c 74 20 61 63 74 |ight def|ault act|
|00002250| 69 6f 6e 73 20 73 69 6e | 63 65 20 77 65 20 6f 76 |ions sin|ce we ov|
|00002260| 65 72 72 69 64 65 20 74 | 68 65 6d 0d 20 62 79 20 |erride t|hem. by |
|00002270| 76 69 72 74 75 65 20 6f | 66 20 6f 75 72 20 65 78 |virtue o|f our ex|
|00002280| 69 73 74 65 6e 63 65 2e | 7d 0d 0d 56 41 52 0d 09 |istence.|}..VAR..|
|00002290| 70 6f 72 74 09 09 3a 20 | 47 72 61 66 50 74 72 3b |port..: |GrafPtr;|
|000022a0| 0d 09 6c 6f 63 09 09 09 | 3a 20 50 6f 69 6e 74 3b |..loc...|: Point;|
|000022b0| 0d 09 6b 69 6e 64 09 09 | 3a 20 49 4e 54 45 47 45 |..kind..|: INTEGE|
|000022c0| 52 3b 0d 09 68 09 09 09 | 3a 20 48 61 6e 64 6c 65 |R;..h...|: Handle|
|000022d0| 3b 0d 09 72 09 09 09 3a | 20 52 65 63 74 3b 0d 09 |;..r...:| Rect;..|
|000022e0| 69 67 6e 6f 72 65 09 09 | 3a 20 42 4f 4f 4c 45 41 |ignore..|: BOOLEA|
|000022f0| 4e 3b 0d 09 6b 65 79 09 | 09 09 3a 20 53 69 67 6e |N;..key.|..: Sign|
|00002300| 65 64 42 79 74 65 3b 0d | 09 66 69 6e 61 6c 54 69 |edByte;.|.finalTi|
|00002310| 63 6b 73 09 3a 20 4c 6f | 6e 67 49 6e 74 3b 0d 42 |cks.: Lo|ngInt;.B|
|00002320| 45 47 49 4e 0d 09 4c 69 | 73 74 46 69 6c 74 65 72 |EGIN..Li|stFilter|
|00002330| 20 3a 3d 20 46 41 4c 53 | 45 3b 09 09 09 09 09 09 | := FALS|E;......|
|00002340| 09 09 7b 61 6c 77 61 79 | 73 20 64 65 66 61 75 6c |..{alway|s defaul|
|00002350| 74 20 46 41 4c 53 45 7d | 0d 09 43 41 53 45 20 65 |t FALSE}|..CASE e|
|00002360| 76 65 6e 74 2e 77 68 61 | 74 20 4f 46 0d 09 09 6b |vent.wha|t OF...k|
|00002370| 65 79 44 6f 77 6e 2c 20 | 61 75 74 6f 4b 65 79 3a |eyDown, |autoKey:|
|00002380| 20 42 45 47 49 4e 09 09 | 09 09 09 09 09 7b 63 68 | BEGIN..|.....{ch|
|00002390| 65 63 6b 20 66 6f 72 20 | 3c 63 72 3e 20 6f 72 20 |eck for |<cr> or |
|000023a0| 3c 65 6e 74 65 72 3e 7d | 0d 09 09 09 6b 65 79 20 |<enter>}|....key |
|000023b0| 3a 3d 20 53 69 67 6e 65 | 64 42 79 74 65 28 65 76 |:= Signe|dByte(ev|
|000023c0| 65 6e 74 2e 6d 65 73 73 | 61 67 65 29 3b 0d 09 09 |ent.mess|age);...|
|000023d0| 09 49 46 20 6b 65 79 20 | 49 4e 20 5b 6b 43 52 2c |.IF key |IN [kCR,|
|000023e0| 20 6b 45 4e 54 45 52 5d | 20 54 48 45 4e 20 42 45 | kENTER]| THEN BE|
|000023f0| 47 49 4e 09 09 09 7b 69 | 74 20 77 61 73 20 61 20 |GIN...{i|t was a |
|00002400| 3c 63 72 3e 20 6f 72 20 | 3c 65 6e 74 65 72 3e 7d |<cr> or |<enter>}|
|00002410| 0d 09 09 09 09 47 65 74 | 44 49 74 65 6d 28 64 6c |.....Get|DItem(dl|
|00002420| 67 2c 20 6f 6b 2c 20 6b | 69 6e 64 2c 20 68 2c 20 |g, ok, k|ind, h, |
|00002430| 72 29 3b 0d 09 09 09 09 | 48 69 6c 69 74 65 43 6f |r);.....|HiliteCo|
|00002440| 6e 74 72 6f 6c 28 43 6f | 6e 74 72 6f 6c 48 61 6e |ntrol(Co|ntrolHan|
|00002450| 64 6c 65 28 68 29 2c 20 | 6b 48 69 6c 69 74 65 29 |dle(h), |kHilite)|
|00002460| 3b 0d 09 09 09 09 44 65 | 6c 61 79 28 6b 48 69 6c |;.....De|lay(kHil|
|00002470| 69 74 65 44 65 6c 61 79 | 2c 20 66 69 6e 61 6c 54 |iteDelay|, finalT|
|00002480| 69 63 6b 73 29 3b 0d 09 | 09 09 09 48 69 6c 69 74 |icks);..|...Hilit|
|00002490| 65 43 6f 6e 74 72 6f 6c | 28 43 6f 6e 74 72 6f 6c |eControl|(Control|
|000024a0| 48 61 6e 64 6c 65 28 68 | 29 2c 20 6b 44 65 48 69 |Handle(h|), kDeHi|
|000024b0| 6c 69 74 65 29 3b 0d 09 | 09 09 09 4c 69 73 74 46 |lite);..|...ListF|
|000024c0| 69 6c 74 65 72 20 3a 3d | 20 54 52 55 45 3b 09 09 |ilter :=| TRUE;..|
|000024d0| 09 09 09 09 7b 73 6f 20 | 77 65 20 68 61 6e 64 6c |....{so |we handl|
|000024e0| 65 20 69 74 7d 0d 09 09 | 09 09 69 74 65 6d 20 3a |e it}...|..item :|
|000024f0| 3d 20 31 3b 09 09 09 09 | 09 09 09 09 7b 61 6e 64 |= 1;....|....{and|
|00002500| 20 6d 61 6b 65 20 74 68 | 65 20 66 69 72 73 74 20 | make th|e first |
|00002510| 69 74 65 6d 20 68 69 74 | 7d 0d 09 09 09 45 4e 44 |item hit|}....END|
|00002520| 3b 0d 09 09 45 4e 44 3b | 0d 09 09 6d 6f 75 73 65 |;...END;|...mouse|
|00002530| 44 6f 77 6e 3a 20 42 45 | 47 49 4e 09 09 09 09 09 |Down: BE|GIN.....|
|00002540| 09 09 09 7b 77 65 20 77 | 61 6e 74 20 6d 6f 75 73 |...{we w|ant mous|
|00002550| 65 44 6f 77 6e 73 7d 0d | 09 09 09 47 65 74 50 6f |eDowns}.|...GetPo|
|00002560| 72 74 28 70 6f 72 74 29 | 3b 0d 09 09 09 53 65 74 |rt(port)|;....Set|
|00002570| 50 6f 72 74 28 64 6c 67 | 29 3b 0d 09 09 09 6c 6f |Port(dlg|);....lo|
|00002580| 63 20 3a 3d 20 65 76 65 | 6e 74 2e 77 68 65 72 65 |c := eve|nt.where|
|00002590| 3b 0d 09 09 09 47 6c 6f | 62 61 6c 54 6f 4c 6f 63 |;....Glo|balToLoc|
|000025a0| 61 6c 28 6c 6f 63 29 3b | 09 09 09 09 09 09 09 7b |al(loc);|.......{|
|000025b0| 66 69 6e 64 20 77 68 65 | 72 65 20 63 6c 69 63 6b |find whe|re click|
|000025c0| 65 64 7d 0d 09 09 09 47 | 65 74 44 49 74 65 6d 28 |ed}....G|etDItem(|
|000025d0| 64 6c 67 2c 20 64 5a 6f | 6e 65 4c 69 73 74 2c 20 |dlg, dZo|neList, |
|000025e0| 6b 69 6e 64 2c 20 68 2c | 20 72 29 3b 09 09 7b 67 |kind, h,| r);..{g|
|000025f0| 65 74 20 72 65 63 74 20 | 66 6f 72 20 6c 69 73 74 |et rect |for list|
|00002600| 7d 0d 09 09 09 49 46 20 | 50 74 49 6e 52 65 63 74 |}....IF |PtInRect|
|00002610| 28 6c 6f 63 2c 20 72 29 | 20 54 48 45 4e 20 42 45 |(loc, r)| THEN BE|
|00002620| 47 49 4e 09 09 09 09 7b | 69 66 20 63 6c 69 63 6b |GIN....{|if click|
|00002630| 65 64 20 69 6e 73 69 64 | 65 c9 7d 0d 09 09 09 09 |ed insid|e.}.....|
|00002640| 4c 69 73 74 46 69 6c 74 | 65 72 20 3a 3d 20 54 52 |ListFilt|er := TR|
|00002650| 55 45 3b 09 09 09 09 09 | 09 7b 77 65 20 74 61 6b |UE;.....|.{we tak|
|00002660| 65 20 63 61 72 65 20 6f | 66 20 69 74 7d 0d 09 09 |e care o|f it}...|
|00002670| 09 09 69 67 6e 6f 72 65 | 20 3a 3d 20 4c 43 6c 69 |..ignore| := LCli|
|00002680| 63 6b 28 6c 6f 63 2c 20 | 65 76 65 6e 74 2e 6d 6f |ck(loc, |event.mo|
|00002690| 64 69 66 69 65 72 73 2c | 20 0d 09 09 09 09 09 09 |difiers,| .......|
|000026a0| 09 09 09 67 4c 69 73 74 | 29 3b 09 09 09 09 7b 62 |...gList|);....{b|
|000026b0| 79 20 70 61 73 73 69 6e | 67 20 63 6c 69 63 6b 20 |y passin|g click |
|000026c0| 74 6f 20 6c 69 73 74 7d | 0d 09 09 09 45 4e 44 3b |to list}|....END;|
|000026d0| 0d 09 09 09 53 65 74 50 | 6f 72 74 28 70 6f 72 74 |....SetP|ort(port|
|000026e0| 29 3b 0d 09 09 45 4e 44 | 3b 0d 09 45 4e 44 3b 0d |);...END|;..END;.|
|000026f0| 45 4e 44 3b 20 7b 4c 69 | 73 74 46 69 6c 74 65 72 |END; {Li|stFilter|
|00002700| 7d 0d 0d 0d 7b 24 53 20 | 4d 61 69 6e 7d 0d 50 52 |}...{$S |Main}.PR|
|00002710| 4f 43 45 44 55 52 45 20 | 44 6f 5a 6f 6e 65 4c 69 |OCEDURE |DoZoneLi|
|00002720| 73 74 3b 0d 0d 7b 50 75 | 74 20 75 70 20 61 20 6d |st;..{Pu|t up a m|
|00002730| 6f 64 61 6c 20 64 69 61 | 6c 6f 67 20 74 68 61 74 |odal dia|log that|
|00002740| 20 73 68 6f 77 73 20 61 | 20 6c 69 73 74 20 6f 66 | shows a| list of|
|00002750| 20 74 68 65 20 7a 6f 6e | 65 73 20 6f 6e 20 74 68 | the zon|es on th|
|00002760| 65 20 6e 65 74 2e 20 43 | 72 65 61 74 65 20 74 68 |e net. C|reate th|
|00002770| 65 20 64 69 61 6c 6f 67 | 0d 20 61 6e 64 20 6c 69 |e dialog|. and li|
|00002780| 73 74 2c 20 63 61 6c 6c | 20 42 75 69 6c 64 5a 6f |st, call| BuildZo|
|00002790| 6e 65 4c 69 73 74 20 74 | 6f 20 66 69 6c 6c 20 69 |neList t|o fill i|
|000027a0| 74 2c 20 74 68 65 6e 20 | 77 61 69 74 20 66 6f 72 |t, then |wait for|
|000027b0| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 63 6c 69 | the use|r to cli|
|000027c0| 63 6b 20 4f 4b 2e 7d 0d | 0d 56 41 52 0d 09 64 6c |ck OK.}.|.VAR..dl|
|000027d0| 67 09 09 09 09 09 09 3a | 20 44 69 61 6c 6f 67 50 |g......:| DialogP|
|000027e0| 74 72 3b 0d 09 69 74 65 | 6d 2c 20 6b 69 6e 64 09 |tr;..ite|m, kind.|
|000027f0| 09 09 09 3a 20 49 4e 54 | 45 47 45 52 3b 0d 09 68 |...: INT|EGER;..h|
|00002800| 09 09 09 09 09 09 3a 20 | 48 61 6e 64 6c 65 3b 0d |......: |Handle;.|
|00002810| 09 72 2c 20 72 56 69 65 | 77 2c 20 64 61 74 61 42 |.r, rVie|w, dataB|
|00002820| 6f 75 6e 64 73 09 3a 20 | 52 65 63 74 3b 0d 09 63 |ounds.: |Rect;..c|
|00002830| 53 69 7a 65 09 09 09 09 | 09 3a 20 50 6f 69 6e 74 |Size....|.: Point|
|00002840| 3b 0d 09 66 69 09 09 09 | 09 09 09 3a 20 46 61 69 |;..fi...|...: Fai|
|00002850| 6c 49 6e 66 6f 3b 0d 09 | 68 6f 72 2c 20 76 65 72 |lInfo;..|hor, ver|
|00002860| 09 09 09 09 3a 20 49 4e | 54 45 47 45 52 3b 0d 09 |....: IN|TEGER;..|
|00002870| 0d 09 50 52 4f 43 45 44 | 55 52 45 20 43 6c 65 61 |..PROCED|URE Clea|
|00002880| 6e 55 70 3b 0d 09 42 45 | 47 49 4e 0d 09 09 49 46 |nUp;..BE|GIN...IF|
|00002890| 20 67 4c 69 73 74 20 3c | 3e 20 4e 49 4c 20 54 48 | gList <|> NIL TH|
|000028a0| 45 4e 0d 09 09 09 4c 44 | 69 73 70 6f 73 65 28 67 |EN....LD|ispose(g|
|000028b0| 4c 69 73 74 29 3b 09 09 | 09 09 09 09 09 09 7b 67 |List);..|......{g|
|000028c0| 65 74 20 72 69 64 20 6f | 66 20 6c 69 73 74 7d 0d |et rid o|f list}.|
|000028d0| 09 09 49 46 20 64 6c 67 | 20 3c 3e 20 4e 49 4c 20 |..IF dlg| <> NIL |
|000028e0| 54 48 45 4e 0d 09 09 09 | 44 69 73 70 6f 73 44 69 |THEN....|DisposDi|
|000028f0| 61 6c 6f 67 28 64 6c 67 | 29 3b 09 09 09 09 09 09 |alog(dlg|);......|
|00002900| 09 09 7b 67 65 74 20 72 | 69 64 20 6f 66 20 64 69 |..{get r|id of di|
|00002910| 61 6c 6f 67 7d 0d 09 45 | 4e 44 3b 20 7b 43 6c 65 |alog}..E|ND; {Cle|
|00002920| 61 6e 55 70 7d 0d 0d 09 | 50 52 4f 43 45 44 55 52 |anUp}...|PROCEDUR|
|00002930| 45 20 48 61 6e 64 6c 65 | 45 72 72 28 65 72 72 6f |E Handle|Err(erro|
|00002940| 72 3a 20 49 4e 54 45 47 | 45 52 3b 20 6d 65 73 73 |r: INTEG|ER; mess|
|00002950| 61 67 65 3a 20 4c 6f 6e | 67 49 6e 74 29 3b 0d 09 |age: Lon|gInt);..|
|00002960| 42 45 47 49 4e 0d 09 09 | 43 6c 65 61 6e 55 70 3b |BEGIN...|CleanUp;|
|00002970| 09 09 09 09 09 09 09 09 | 09 09 09 7b 72 65 6c 65 |........|...{rele|
|00002980| 61 73 65 20 6a 75 6e 6b | 7d 0d 09 45 4e 44 3b 0d |ase junk|}..END;.|
|00002990| 09 0d 42 45 47 49 4e 0d | 09 67 4c 69 73 74 20 3a |..BEGIN.|.gList :|
|000029a0| 3d 20 4e 49 4c 3b 09 09 | 09 09 09 09 09 09 09 09 |= NIL;..|........|
|000029b0| 09 7b 69 6e 69 74 20 73 | 6f 6d 65 20 69 6d 70 6f |.{init s|ome impo|
|000029c0| 72 74 61 6e 74 20 76 61 | 72 69 61 62 6c 65 73 7d |rtant va|riables}|
|000029d0| 0d 09 64 6c 67 20 3a 3d | 20 4e 49 4c 3b 0d 09 43 |..dlg :=| NIL;..C|
|000029e0| 61 74 63 68 46 61 69 6c | 75 72 65 73 28 66 69 2c |atchFail|ures(fi,|
|000029f0| 20 48 61 6e 64 6c 65 45 | 72 72 29 3b 0d 09 0d 09 | HandleE|rr);....|
|00002a00| 64 6c 67 20 3a 3d 20 47 | 65 74 4e 65 77 44 69 61 |dlg := G|etNewDia|
|00002a10| 6c 6f 67 28 72 5a 6f 6e | 65 44 69 61 6c 6f 67 2c |log(rZon|eDialog,|
|00002a20| 20 4e 49 4c 2c 20 50 4f | 49 4e 54 45 52 28 2d 31 | NIL, PO|INTER(-1|
|00002a30| 29 29 3b 09 09 7b 63 72 | 65 61 74 65 20 64 69 61 |));..{cr|eate dia|
|00002a40| 6c 6f 67 7d 0d 09 46 61 | 69 6c 4e 49 4c 4d 73 67 |log}..Fa|ilNILMsg|
|00002a50| 28 64 6c 67 2c 20 65 4e | 6f 4d 65 6d 6f 72 79 29 |(dlg, eN|oMemory)|
|00002a60| 3b 0d 09 0d 09 7b 57 65 | 20 63 65 6e 74 65 72 20 |;....{We| center |
|00002a70| 74 68 65 20 64 69 61 6c | 6f 67 20 68 6f 72 69 7a |the dial|og horiz|
|00002a80| 6f 6e 74 61 6c 6c 79 20 | 61 6e 64 20 70 6f 73 69 |ontally |and posi|
|00002a90| 74 69 6f 6e 20 69 74 20 | 76 65 72 74 69 63 61 6c |tion it |vertical|
|00002aa0| 6c 79 20 6f 6e 65 2d 74 | 68 69 72 64 20 74 68 65 |ly one-t|hird the|
|00002ab0| 0d 09 20 64 69 73 74 61 | 6e 63 65 20 66 72 6f 6d |.. dista|nce from|
|00002ac0| 20 74 68 65 20 6d 65 6e | 75 20 62 61 72 20 74 6f | the men|u bar to|
|00002ad0| 20 74 68 65 20 62 6f 74 | 74 6f 6d 20 6f 66 20 74 | the bot|tom of t|
|00002ae0| 68 65 20 6d 61 69 6e 20 | 64 65 76 69 63 65 2e 20 |he main |device. |
|00002af0| 57 65 20 64 6f 20 6e 6f | 74 0d 09 20 63 68 65 63 |We do no|t.. chec|
|00002b00| 6b 20 66 6f 72 20 74 68 | 65 20 64 69 61 6c 6f 67 |k for th|e dialog|
|00002b10| 20 65 78 74 65 6e 64 69 | 6e 67 20 70 61 73 74 20 | extendi|ng past |
|00002b20| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6f 66 20 74 68 |the bott|om of th|
|00002b30| 65 20 64 65 76 69 63 65 | 20 62 65 63 61 75 73 65 |e device| because|
|00002b40| 20 77 65 0d 09 20 6b 6e | 6f 77 20 74 68 65 20 64 | we.. kn|ow the d|
|00002b50| 69 61 6c 6f 67 20 69 73 | 20 6e 6f 74 20 74 68 61 |ialog is| not tha|
|00002b60| 74 20 62 69 67 2e 20 59 | 6f 75 20 6d 61 79 20 77 |t big. Y|ou may w|
|00002b70| 69 73 68 20 74 6f 20 6d | 61 6b 65 20 74 68 61 74 |ish to m|ake that|
|00002b80| 20 63 68 65 63 6b 2e 7d | 0d 09 57 49 54 48 20 64 | check.}|..WITH d|
|00002b90| 6c 67 5e 2e 70 6f 72 74 | 52 65 63 74 20 44 4f 0d |lg^.port|Rect DO.|
|00002ba0| 09 09 68 6f 72 20 3a 3d | 20 72 69 67 68 74 20 2d |..hor :=| right -|
|00002bb0| 20 6c 65 66 74 3b 0d 09 | 57 49 54 48 20 73 63 72 | left;..|WITH scr|
|00002bc0| 65 65 6e 42 69 74 73 2e | 62 6f 75 6e 64 73 20 44 |eenBits.|bounds D|
|00002bd0| 4f 20 42 45 47 49 4e 0d | 09 09 68 6f 72 20 3a 3d |O BEGIN.|..hor :=|
|00002be0| 20 28 28 72 69 67 68 74 | 20 2d 20 6c 65 66 74 29 | ((right| - left)|
|00002bf0| 20 2d 20 68 6f 72 29 20 | 44 49 56 20 32 3b 0d 09 | - hor) |DIV 2;..|
|00002c00| 09 76 65 72 20 3a 3d 20 | 28 28 62 6f 74 74 6f 6d |.ver := |((bottom|
|00002c10| 20 2d 20 74 6f 70 29 20 | 2d 20 47 65 74 4d 42 61 | - top) |- GetMBa|
|00002c20| 72 48 65 69 67 68 74 29 | 20 44 49 56 20 33 3b 0d |rHeight)| DIV 3;.|
|00002c30| 09 45 4e 44 3b 0d 09 4d | 6f 76 65 57 69 6e 64 6f |.END;..M|oveWindo|
|00002c40| 77 28 64 6c 67 2c 20 68 | 6f 72 2c 20 76 65 72 2c |w(dlg, h|or, ver,|
|00002c50| 20 46 41 4c 53 45 29 3b | 0d 09 0d 09 47 65 74 44 | FALSE);|....GetD|
|00002c60| 49 74 65 6d 28 64 6c 67 | 2c 20 64 44 65 66 61 75 |Item(dlg|, dDefau|
|00002c70| 6c 74 2c 20 6b 69 6e 64 | 2c 20 68 2c 20 72 29 3b |lt, kind|, h, r);|
|00002c80| 0d 09 68 20 3a 3d 20 40 | 5a 6f 6e 65 4c 69 73 74 |..h := @|ZoneList|
|00002c90| 44 72 61 77 3b 09 09 09 | 09 09 09 09 09 09 09 7b |Draw;...|.......{|
|00002ca0| 63 6f 6e 6e 65 63 74 20 | 64 72 61 77 69 6e 67 20 |connect |drawing |
|00002cb0| 70 72 6f 63 65 64 75 72 | 65 7d 0d 09 53 65 74 44 |procedur|e}..SetD|
|00002cc0| 49 74 65 6d 28 64 6c 67 | 2c 20 64 44 65 66 61 75 |Item(dlg|, dDefau|
|00002cd0| 6c 74 2c 20 6b 69 6e 64 | 2c 20 68 2c 20 72 29 3b |lt, kind|, h, r);|
|00002ce0| 0d 09 47 65 74 44 49 74 | 65 6d 28 64 6c 67 2c 20 |..GetDIt|em(dlg, |
|00002cf0| 64 5a 6f 6e 65 4c 69 73 | 74 2c 20 6b 69 6e 64 2c |dZoneLis|t, kind,|
|00002d00| 20 68 2c 20 72 29 3b 0d | 09 68 20 3a 3d 20 40 5a | h, r);.|.h := @Z|
|00002d10| 6f 6e 65 4c 69 73 74 44 | 72 61 77 3b 09 09 09 09 |oneListD|raw;....|
|00002d20| 09 09 09 09 09 09 7b 63 | 6f 6e 6e 65 63 74 20 64 |......{c|onnect d|
|00002d30| 72 61 77 69 6e 67 20 70 | 72 6f 63 65 64 75 72 65 |rawing p|rocedure|
|00002d40| 7d 0d 09 53 65 74 44 49 | 74 65 6d 28 64 6c 67 2c |}..SetDI|tem(dlg,|
|00002d50| 20 64 5a 6f 6e 65 4c 69 | 73 74 2c 20 6b 69 6e 64 | dZoneLi|st, kind|
|00002d60| 2c 20 68 2c 20 72 29 3b | 0d 09 72 56 69 65 77 20 |, h, r);|..rView |
|00002d70| 3a 3d 20 72 3b 0d 09 57 | 49 54 48 20 72 56 69 65 |:= r;..W|ITH rVie|
|00002d80| 77 20 44 4f 0d 09 09 72 | 69 67 68 74 20 3a 3d 20 |w DO...r|ight := |
|00002d90| 72 69 67 68 74 20 2d 20 | 6b 53 63 72 6f 6c 6c 42 |right - |kScrollB|
|00002da0| 61 72 57 69 64 74 68 3b | 09 09 09 09 09 7b 61 64 |arWidth;|.....{ad|
|00002db0| 6a 75 73 74 20 72 65 63 | 74 61 6e 67 6c 65 20 66 |just rec|tangle f|
|00002dc0| 6f 72 20 73 63 72 6f 6c | 6c 7d 0d 09 53 65 74 52 |or scrol|l}..SetR|
|00002dd0| 65 63 74 28 64 61 74 61 | 42 6f 75 6e 64 73 2c 20 |ect(data|Bounds, |
|00002de0| 30 2c 20 30 2c 20 31 2c | 20 30 29 3b 09 09 09 09 |0, 0, 1,| 0);....|
|00002df0| 09 09 7b 69 6e 69 74 20 | 74 6f 20 6f 6e 65 2d 77 |..{init |to one-w|
|00002e00| 69 64 65 20 6c 69 73 74 | 7d 0d 09 53 65 74 50 74 |ide list|}..SetPt|
|00002e10| 28 63 53 69 7a 65 2c 20 | 30 2c 20 30 29 3b 0d 09 |(cSize, |0, 0);..|
|00002e20| 67 4c 69 73 74 20 3a 3d | 20 4c 4e 65 77 28 72 56 |gList :=| LNew(rV|
|00002e30| 69 65 77 2c 20 64 61 74 | 61 42 6f 75 6e 64 73 2c |iew, dat|aBounds,|
|00002e40| 20 63 53 69 7a 65 2c 20 | 30 2c 20 57 69 6e 64 6f | cSize, |0, Windo|
|00002e50| 77 50 74 72 28 64 6c 67 | 29 2c 0d 09 09 09 09 09 |wPtr(dlg|),......|
|00002e60| 46 41 4c 53 45 2c 20 46 | 41 4c 53 45 2c 20 46 41 |FALSE, F|ALSE, FA|
|00002e70| 4c 53 45 2c 20 54 52 55 | 45 29 3b 09 09 09 09 7b |LSE, TRU|E);....{|
|00002e80| 63 72 65 61 74 65 20 77 | 69 74 68 20 76 65 72 74 |create w|ith vert|
|00002e90| 69 63 61 6c 20 73 63 72 | 6f 6c 6c 7d 0d 09 46 61 |ical scr|oll}..Fa|
|00002ea0| 69 6c 4e 49 4c 4d 73 67 | 28 67 4c 69 73 74 2c 20 |ilNILMsg|(gList, |
|00002eb0| 65 4e 6f 4d 65 6d 6f 72 | 79 29 3b 0d 09 42 75 69 |eNoMemor|y);..Bui|
|00002ec0| 6c 64 5a 6f 6e 65 4c 69 | 73 74 3b 09 09 09 09 09 |ldZoneLi|st;.....|
|00002ed0| 09 09 09 09 09 09 7b 70 | 75 74 20 74 68 65 20 73 |......{p|ut the s|
|00002ee0| 74 75 66 66 20 69 6e 74 | 6f 20 74 68 65 20 6c 69 |tuff int|o the li|
|00002ef0| 73 74 7d 0d 09 53 65 74 | 50 74 28 63 53 69 7a 65 |st}..Set|Pt(cSize|
|00002f00| 2c 20 30 2c 20 30 29 3b | 0d 09 4c 53 65 74 53 65 |, 0, 0);|..LSetSe|
|00002f10| 6c 65 63 74 28 54 52 55 | 45 2c 20 63 53 69 7a 65 |lect(TRU|E, cSize|
|00002f20| 2c 20 67 4c 69 73 74 29 | 3b 09 09 09 09 09 09 09 |, gList)|;.......|
|00002f30| 7b 73 65 6c 65 63 74 20 | 74 68 65 20 66 69 72 73 |{select |the firs|
|00002f40| 74 20 67 75 79 7d 0d 09 | 4c 44 6f 44 72 61 77 28 |t guy}..|LDoDraw(|
|00002f50| 54 52 55 45 2c 20 67 4c | 69 73 74 29 3b 09 09 09 |TRUE, gL|ist);...|
|00002f60| 09 09 09 09 09 09 7b 74 | 75 72 6e 20 6f 6e 20 74 |......{t|urn on t|
|00002f70| 68 65 20 6c 69 73 74 7d | 0d 09 53 68 6f 77 57 69 |he list}|..ShowWi|
|00002f80| 6e 64 6f 77 28 64 6c 67 | 29 3b 09 09 09 09 09 09 |ndow(dlg|);......|
|00002f90| 09 09 09 09 7b 74 75 72 | 6e 20 6f 6e 20 74 68 65 |....{tur|n on the|
|00002fa0| 20 64 69 61 6c 6f 67 7d | 0d 09 52 45 50 45 41 54 | dialog}|..REPEAT|
|00002fb0| 0d 09 09 4d 6f 64 61 6c | 44 69 61 6c 6f 67 28 40 |...Modal|Dialog(@|
|00002fc0| 4c 69 73 74 46 69 6c 74 | 65 72 2c 20 69 74 65 6d |ListFilt|er, item|
|00002fd0| 29 3b 09 09 09 09 09 09 | 7b 61 63 63 65 70 74 20 |);......|{accept |
|00002fe0| 65 76 65 6e 74 73 7d 0d | 09 55 4e 54 49 4c 20 69 |events}.|.UNTIL i|
|00002ff0| 74 65 6d 20 3d 20 6f 6b | 3b 09 09 09 09 09 09 09 |tem = ok|;.......|
|00003000| 09 09 09 7b 75 6e 74 69 | 6c 20 68 65 20 70 72 65 |...{unti|l he pre|
|00003010| 73 73 65 73 20 27 6f 6b | 27 7d 0d 09 43 6c 65 61 |sses 'ok|'}..Clea|
|00003020| 6e 55 70 3b 0d 09 0d 09 | 53 75 63 63 65 73 73 28 |nUp;....|Success(|
|00003030| 66 69 29 3b 0d 45 4e 44 | 3b 20 7b 44 6f 5a 6f 6e |fi);.END|; {DoZon|
|00003040| 65 4c 69 73 74 7d 0d 0d | 0d 7b 24 53 20 4d 61 69 |eList}..|.{$S Mai|
|00003050| 6e 7d 0d 46 55 4e 43 54 | 49 4f 4e 20 44 6f 43 6c |n}.FUNCT|ION DoCl|
|00003060| 6f 73 65 57 69 6e 64 6f | 77 28 77 69 6e 64 6f 77 |oseWindo|w(window|
|00003070| 3a 20 57 69 6e 64 6f 77 | 50 74 72 29 20 3a 20 42 |: Window|Ptr) : B|
|00003080| 4f 4f 4c 45 41 4e 3b 0d | 42 45 47 49 4e 0d 09 44 |OOLEAN;.|BEGIN..D|
|00003090| 6f 43 6c 6f 73 65 57 69 | 6e 64 6f 77 20 3a 3d 20 |oCloseWi|ndow := |
|000030a0| 54 52 55 45 3b 0d 09 49 | 46 20 49 73 44 41 57 69 |TRUE;..I|F IsDAWi|
|000030b0| 6e 64 6f 77 28 77 69 6e | 64 6f 77 29 20 54 48 45 |ndow(win|dow) THE|
|000030c0| 4e 0d 09 09 43 6c 6f 73 | 65 44 65 73 6b 41 63 63 |N...Clos|eDeskAcc|
|000030d0| 28 57 69 6e 64 6f 77 50 | 65 65 6b 28 77 69 6e 64 |(WindowP|eek(wind|
|000030e0| 6f 77 29 5e 2e 77 69 6e | 64 6f 77 4b 69 6e 64 29 |ow)^.win|dowKind)|
|000030f0| 0d 09 45 4c 53 45 20 0d | 09 49 46 20 49 73 41 70 |..ELSE .|.IF IsAp|
|00003100| 70 57 69 6e 64 6f 77 28 | 77 69 6e 64 6f 77 29 20 |pWindow(|window) |
|00003110| 54 48 45 4e 0d 09 09 43 | 6c 6f 73 65 57 69 6e 64 |THEN...C|loseWind|
|00003120| 6f 77 28 77 69 6e 64 6f | 77 29 3b 0d 45 4e 44 3b |ow(windo|w);.END;|
|00003130| 20 7b 44 6f 43 6c 6f 73 | 65 57 69 6e 64 6f 77 7d | {DoClos|eWindow}|
|00003140| 0d 0d 0d 7b 24 53 20 49 | 6e 69 74 69 61 6c 69 7a |...{$S I|nitializ|
|00003150| 65 7d 0d 50 52 4f 43 45 | 44 55 52 45 20 49 6e 69 |e}.PROCE|DURE Ini|
|00003160| 74 69 61 6c 69 7a 65 3b | 0d 56 41 52 0d 09 6d 65 |tialize;|.VAR..me|
|00003170| 6e 75 42 61 72 09 09 09 | 3a 20 48 61 6e 64 6c 65 |nuBar...|: Handle|
|00003180| 3b 0d 09 77 69 6e 64 6f | 77 09 09 09 3a 20 57 69 |;..windo|w...: Wi|
|00003190| 6e 64 6f 77 50 74 72 3b | 0d 09 69 67 6e 6f 72 65 |ndowPtr;|..ignore|
|000031a0| 45 72 72 6f 72 09 09 3a | 20 4f 53 45 72 72 3b 0d |Error..:| OSErr;.|
|000031b0| 09 74 6f 74 61 6c 2c 20 | 63 6f 6e 74 69 67 09 3a |.total, |contig.:|
|000031c0| 20 4c 6f 6e 67 49 6e 74 | 3b 0d 09 69 67 6e 6f 72 | LongInt|;..ignor|
|000031d0| 65 52 65 73 75 6c 74 09 | 3a 20 42 4f 4f 4c 45 41 |eResult.|: BOOLEA|
|000031e0| 4e 3b 0d 09 65 76 65 6e | 74 09 09 09 3a 20 45 76 |N;..even|t...: Ev|
|000031f0| 65 6e 74 52 65 63 6f 72 | 64 3b 0d 09 63 6f 75 6e |entRecor|d;..coun|
|00003200| 74 09 09 09 3a 20 49 4e | 54 45 47 45 52 3b 0d 09 |t...: IN|TEGER;..|
|00003210| 66 69 09 09 09 09 3a 20 | 46 61 69 6c 49 6e 66 6f |fi....: |FailInfo|
|00003220| 3b 0d 0d 09 50 52 4f 43 | 45 44 55 52 45 20 48 61 |;...PROC|EDURE Ha|
|00003230| 6e 64 6c 65 45 72 72 28 | 65 72 72 6f 72 3a 20 49 |ndleErr(|error: I|
|00003240| 4e 54 45 47 45 52 3b 20 | 6d 65 73 73 61 67 65 3a |NTEGER; |message:|
|00003250| 20 4c 6f 6e 67 49 6e 74 | 29 3b 0d 09 42 45 47 49 | LongInt|);..BEGI|
|00003260| 4e 0d 09 09 49 46 20 65 | 72 72 6f 72 20 3e 20 30 |N...IF e|rror > 0|
|00003270| 20 54 48 45 4e 0d 09 09 | 09 41 6c 65 72 74 55 73 | THEN...|.AlertUs|
|00003280| 65 72 28 30 2c 20 65 72 | 72 6f 72 29 0d 09 09 45 |er(0, er|ror)...E|
|00003290| 4c 53 45 0d 09 09 09 41 | 6c 65 72 74 55 73 65 72 |LSE....A|lertUser|
|000032a0| 28 65 72 72 6f 72 2c 20 | 6d 65 73 73 61 67 65 29 |(error, |message)|
|000032b0| 3b 0d 09 09 45 78 69 74 | 54 6f 53 68 65 6c 6c 3b |;...Exit|ToShell;|
|000032c0| 0d 09 45 4e 44 3b 20 7b | 48 61 6e 64 6c 65 45 72 |..END; {|HandleEr|
|000032d0| 72 7d 0d 0d 42 45 47 49 | 4e 0d 09 67 48 61 73 57 |r}..BEGI|N..gHasW|
|000032e0| 61 69 74 4e 65 78 74 45 | 76 65 6e 74 20 3a 3d 20 |aitNextE|vent := |
|000032f0| 54 72 61 70 41 76 61 69 | 6c 61 62 6c 65 28 5f 57 |TrapAvai|lable(_W|
|00003300| 61 69 74 4e 65 78 74 45 | 76 65 6e 74 2c 20 54 6f |aitNextE|vent, To|
|00003310| 6f 6c 54 72 61 70 29 3b | 0d 09 67 49 6e 42 61 63 |olTrap);|..gInBac|
|00003320| 6b 67 72 6f 75 6e 64 20 | 3a 3d 20 46 41 4c 53 45 |kground |:= FALSE|
|00003330| 3b 0d 0d 09 49 6e 69 74 | 47 72 61 66 28 40 74 68 |;...Init|Graf(@th|
|00003340| 65 50 6f 72 74 29 3b 0d | 09 49 6e 69 74 46 6f 6e |ePort);.|.InitFon|
|00003350| 74 73 3b 0d 09 49 6e 69 | 74 57 69 6e 64 6f 77 73 |ts;..Ini|tWindows|
|00003360| 3b 0d 09 49 6e 69 74 4d | 65 6e 75 73 3b 0d 09 54 |;..InitM|enus;..T|
|00003370| 45 49 6e 69 74 3b 0d 09 | 49 6e 69 74 44 69 61 6c |EInit;..|InitDial|
|00003380| 6f 67 73 28 4e 49 4c 29 | 3b 0d 09 49 6e 69 74 43 |ogs(NIL)|;..InitC|
|00003390| 75 72 73 6f 72 3b 0d 0d | 09 46 4f 52 20 63 6f 75 |ursor;..|.FOR cou|
|000033a0| 6e 74 20 3a 3d 20 31 20 | 54 4f 20 33 20 44 4f 0d |nt := 1 |TO 3 DO.|
|000033b0| 09 09 69 67 6e 6f 72 65 | 52 65 73 75 6c 74 20 3a |..ignore|Result :|
|000033c0| 3d 20 45 76 65 6e 74 41 | 76 61 69 6c 28 65 76 65 |= EventA|vail(eve|
|000033d0| 72 79 45 76 65 6e 74 2c | 20 65 76 65 6e 74 29 3b |ryEvent,| event);|
|000033e0| 0d 0d 09 43 61 74 63 68 | 46 61 69 6c 75 72 65 73 |...Catch|Failures|
|000033f0| 28 66 69 2c 20 48 61 6e | 64 6c 65 45 72 72 29 3b |(fi, Han|dleErr);|
|00003400| 0d 0d 09 46 61 69 6c 4f | 53 45 72 72 4d 73 67 28 |...FailO|SErrMsg(|
|00003410| 4d 50 50 4f 70 65 6e 2c | 20 65 41 70 70 6c 65 54 |MPPOpen,| eAppleT|
|00003420| 61 6c 6b 29 3b 0d 09 46 | 61 69 6c 4f 53 45 72 72 |alk);..F|ailOSErr|
|00003430| 4d 73 67 28 41 54 50 4c | 6f 61 64 2c 20 65 41 70 |Msg(ATPL|oad, eAp|
|00003440| 70 6c 65 54 61 6c 6b 29 | 3b 0d 0d 09 69 67 6e 6f |pleTalk)|;...igno|
|00003450| 72 65 45 72 72 6f 72 20 | 3a 3d 20 53 79 73 45 6e |reError |:= SysEn|
|00003460| 76 69 72 6f 6e 73 28 6b | 53 79 73 45 6e 76 69 72 |virons(k|SysEnvir|
|00003470| 6f 6e 73 56 65 72 73 69 | 6f 6e 2c 20 67 4d 61 63 |onsVersi|on, gMac|
|00003480| 29 3b 0d 09 49 46 20 67 | 4d 61 63 2e 6d 61 63 68 |);..IF g|Mac.mach|
|00003490| 69 6e 65 54 79 70 65 20 | 3c 20 30 20 54 48 45 4e |ineType |< 0 THEN|
|000034a0| 0d 09 09 46 61 69 6c 75 | 72 65 28 30 2c 20 65 57 |...Failu|re(0, eW|
|000034b0| 72 6f 6e 67 4d 61 63 68 | 69 6e 65 29 3b 0d 09 0d |rongMach|ine);...|
|000034c0| 09 49 46 20 4f 52 44 28 | 47 65 74 41 70 70 6c 4c |.IF ORD(|GetApplL|
|000034d0| 69 6d 69 74 29 20 2d 20 | 4f 52 44 28 41 70 70 6c |imit) - |ORD(Appl|
|000034e0| 69 63 5a 6f 6e 65 29 20 | 3c 20 6b 4d 69 6e 48 65 |icZone) |< kMinHe|
|000034f0| 61 70 20 54 48 45 4e 0d | 09 09 46 61 69 6c 75 72 |ap THEN.|..Failur|
|00003500| 65 28 30 2c 20 65 53 6d | 61 6c 6c 53 69 7a 65 29 |e(0, eSm|allSize)|
|00003510| 3b 0d 0d 09 50 75 72 67 | 65 53 70 61 63 65 28 74 |;...Purg|eSpace(t|
|00003520| 6f 74 61 6c 2c 20 63 6f | 6e 74 69 67 29 3b 0d 09 |otal, co|ntig);..|
|00003530| 49 46 20 74 6f 74 61 6c | 20 3c 20 6b 4d 69 6e 53 |IF total| < kMinS|
|00003540| 70 61 63 65 20 54 48 45 | 4e 0d 09 09 46 61 69 6c |pace THE|N...Fail|
|00003550| 75 72 65 28 30 2c 20 65 | 4e 6f 4d 65 6d 6f 72 79 |ure(0, e|NoMemory|
|00003560| 29 3b 0d 0d 09 6d 65 6e | 75 42 61 72 20 3a 3d 20 |);...men|uBar := |
|00003570| 47 65 74 4e 65 77 4d 42 | 61 72 28 72 4d 65 6e 75 |GetNewMB|ar(rMenu|
|00003580| 42 61 72 29 3b 09 09 7b | 72 65 61 64 20 6d 65 6e |Bar);..{|read men|
|00003590| 75 73 20 69 6e 74 6f 20 | 6d 65 6e 75 20 62 61 72 |us into |menu bar|
|000035a0| 7d 0d 09 46 61 69 6c 4e | 49 4c 4d 73 67 28 6d 65 |}..FailN|ILMsg(me|
|000035b0| 6e 75 42 61 72 2c 20 65 | 4e 6f 4d 65 6d 6f 72 79 |nuBar, e|NoMemory|
|000035c0| 29 3b 0d 09 53 65 74 4d | 65 6e 75 42 61 72 28 6d |);..SetM|enuBar(m|
|000035d0| 65 6e 75 42 61 72 29 3b | 09 09 09 09 09 7b 69 6e |enuBar);|.....{in|
|000035e0| 73 74 61 6c 6c 20 6d 65 | 6e 75 73 7d 0d 09 44 69 |stall me|nus}..Di|
|000035f0| 73 70 6f 73 48 61 6e 64 | 6c 65 28 6d 65 6e 75 42 |sposHand|le(menuB|
|00003600| 61 72 29 3b 0d 09 41 64 | 64 52 65 73 4d 65 6e 75 |ar);..Ad|dResMenu|
|00003610| 28 47 65 74 4d 48 61 6e | 64 6c 65 28 6d 41 70 70 |(GetMHan|dle(mApp|
|00003620| 6c 65 29 2c 20 27 44 52 | 56 52 27 29 3b 09 7b 61 |le), 'DR|VR');.{a|
|00003630| 64 64 20 44 41 20 6e 61 | 6d 65 73 20 74 6f 20 41 |dd DA na|mes to A|
|00003640| 70 70 6c 65 20 6d 65 6e | 75 7d 0d 09 44 72 61 77 |pple men|u}..Draw|
|00003650| 4d 65 6e 75 42 61 72 3b | 0d 09 0d 09 53 75 63 63 |MenuBar;|....Succ|
|00003660| 65 73 73 28 66 69 29 3b | 0d 45 4e 44 3b 20 7b 49 |ess(fi);|.END; {I|
|00003670| 6e 69 74 69 61 6c 69 7a | 65 7d 0d 0d 0d 7b 24 53 |nitializ|e}...{$S|
|00003680| 20 4d 61 69 6e 7d 0d 50 | 52 4f 43 45 44 55 52 45 | Main}.P|ROCEDURE|
|00003690| 20 54 65 72 6d 69 6e 61 | 74 65 3b 0d 56 41 52 0d | Termina|te;.VAR.|
|000036a0| 09 61 57 69 6e 64 6f 77 | 09 3a 20 57 69 6e 64 6f |.aWindow|.: Windo|
|000036b0| 77 50 74 72 3b 0d 09 63 | 6c 6f 73 65 64 09 3a 20 |wPtr;..c|losed.: |
|000036c0| 42 4f 4f 4c 45 41 4e 3b | 0d 0d 42 45 47 49 4e 0d |BOOLEAN;|..BEGIN.|
|000036d0| 09 63 6c 6f 73 65 64 20 | 3a 3d 20 54 52 55 45 3b |.closed |:= TRUE;|
|000036e0| 0d 09 52 45 50 45 41 54 | 0d 09 09 61 57 69 6e 64 |..REPEAT|...aWind|
|000036f0| 6f 77 20 3a 3d 20 46 72 | 6f 6e 74 57 69 6e 64 6f |ow := Fr|ontWindo|
|00003700| 77 3b 09 09 09 09 09 7b | 67 65 74 20 74 68 65 20 |w;.....{|get the |
|00003710| 63 75 72 72 65 6e 74 20 | 66 72 6f 6e 74 20 77 69 |current |front wi|
|00003720| 6e 64 6f 77 7d 0d 09 09 | 49 46 20 61 57 69 6e 64 |ndow}...|IF aWind|
|00003730| 6f 77 20 3c 3e 20 4e 49 | 4c 20 54 48 45 4e 0d 09 |ow <> NI|L THEN..|
|00003740| 09 09 63 6c 6f 73 65 64 | 20 3a 3d 20 44 6f 43 6c |..closed| := DoCl|
|00003750| 6f 73 65 57 69 6e 64 6f | 77 28 61 57 69 6e 64 6f |oseWindo|w(aWindo|
|00003760| 77 29 3b 09 7b 63 6c 6f | 73 65 20 74 68 69 73 20 |w);.{clo|se this |
|00003770| 77 69 6e 64 6f 77 7d 0d | 09 55 4e 54 49 4c 20 28 |window}.|.UNTIL (|
|00003780| 4e 4f 54 20 63 6c 6f 73 | 65 64 29 20 7c 20 28 61 |NOT clos|ed) | (a|
|00003790| 57 69 6e 64 6f 77 20 3d | 20 4e 49 4c 29 3b 09 09 |Window =| NIL);..|
|000037a0| 7b 64 6f 20 61 6c 6c 20 | 77 69 6e 64 6f 77 73 7d |{do all |windows}|
|000037b0| 0d 09 49 46 20 63 6c 6f | 73 65 64 20 54 48 45 4e |..IF clo|sed THEN|
|000037c0| 0d 09 09 45 78 69 74 54 | 6f 53 68 65 6c 6c 3b 09 |...ExitT|oShell;.|
|000037d0| 09 09 09 09 09 09 7b 65 | 78 69 74 20 69 66 20 6e |......{e|xit if n|
|000037e0| 6f 20 63 61 6e 63 65 6c | 6c 61 74 69 6f 6e 7d 0d |o cancel|lation}.|
|000037f0| 45 4e 44 3b 20 7b 54 65 | 72 6d 69 6e 61 74 65 7d |END; {Te|rminate}|
|00003800| 0d 0d 0d 7b 24 53 20 4d | 61 69 6e 7d 0d 50 52 4f |...{$S M|ain}.PRO|
|00003810| 43 45 44 55 52 45 20 41 | 64 6a 75 73 74 4d 65 6e |CEDURE A|djustMen|
|00003820| 75 73 3b 0d 56 41 52 0d | 09 77 69 6e 64 6f 77 09 |us;.VAR.|.window.|
|00003830| 09 09 3a 20 57 69 6e 64 | 6f 77 50 74 72 3b 0d 09 |..: Wind|owPtr;..|
|00003840| 6d 65 6e 75 09 09 09 3a | 20 4d 65 6e 75 48 61 6e |menu...:| MenuHan|
|00003850| 64 6c 65 3b 0d 0d 42 45 | 47 49 4e 0d 09 77 69 6e |dle;..BE|GIN..win|
|00003860| 64 6f 77 20 3a 3d 20 46 | 72 6f 6e 74 57 69 6e 64 |dow := F|rontWind|
|00003870| 6f 77 3b 0d 0d 09 6d 65 | 6e 75 20 3a 3d 20 47 65 |ow;...me|nu := Ge|
|00003880| 74 4d 48 61 6e 64 6c 65 | 28 6d 46 69 6c 65 29 3b |tMHandle|(mFile);|
|00003890| 0d 09 49 46 20 49 73 44 | 41 57 69 6e 64 6f 77 28 |..IF IsD|AWindow(|
|000038a0| 77 69 6e 64 6f 77 29 20 | 54 48 45 4e 09 09 09 09 |window) |THEN....|
|000038b0| 7b 77 65 20 63 61 6e 20 | 61 6c 6c 6f 77 20 64 65 |{we can |allow de|
|000038c0| 73 6b 20 61 63 63 65 73 | 73 6f 72 69 65 73 20 74 |sk acces|sories t|
|000038d0| 6f 20 62 65 20 63 6c 6f | 73 65 64 20 66 72 6f 6d |o be clo|sed from|
|000038e0| 20 74 68 65 20 6d 65 6e | 75 7d 0d 09 09 45 6e 61 | the men|u}...Ena|
|000038f0| 62 6c 65 49 74 65 6d 28 | 6d 65 6e 75 2c 20 69 43 |bleItem(|menu, iC|
|00003900| 6c 6f 73 65 29 0d 09 45 | 4c 53 45 0d 09 09 44 69 |lose)..E|LSE...Di|
|00003910| 73 61 62 6c 65 49 74 65 | 6d 28 6d 65 6e 75 2c 20 |sableIte|m(menu, |
|00003920| 69 43 6c 6f 73 65 29 3b | 09 09 09 7b 62 75 74 20 |iClose);|...{but |
|00003930| 6e 6f 74 20 6f 75 72 20 | 74 72 61 66 66 69 63 20 |not our |traffic |
|00003940| 6c 69 67 68 74 20 77 69 | 6e 64 6f 77 7d 0d 0d 09 |light wi|ndow}...|
|00003950| 6d 65 6e 75 20 3a 3d 20 | 47 65 74 4d 48 61 6e 64 |menu := |GetMHand|
|00003960| 6c 65 28 6d 45 64 69 74 | 29 3b 0d 09 49 46 20 49 |le(mEdit|);..IF I|
|00003970| 73 44 41 57 69 6e 64 6f | 77 28 77 69 6e 64 6f 77 |sDAWindo|w(window|
|00003980| 29 20 54 48 45 4e 20 42 | 45 47 49 4e 09 09 7b 61 |) THEN B|EGIN..{a|
|00003990| 20 64 65 73 6b 20 61 63 | 63 65 73 73 6f 72 79 20 | desk ac|cessory |
|000039a0| 6d 69 67 68 74 20 6e 65 | 65 64 20 74 68 65 20 65 |might ne|ed the e|
|000039b0| 64 69 74 20 6d 65 6e 75 | 7d 0d 09 09 45 6e 61 62 |dit menu|}...Enab|
|000039c0| 6c 65 49 74 65 6d 28 6d | 65 6e 75 2c 20 69 55 6e |leItem(m|enu, iUn|
|000039d0| 64 6f 29 3b 0d 09 09 45 | 6e 61 62 6c 65 49 74 65 |do);...E|nableIte|
|000039e0| 6d 28 6d 65 6e 75 2c 20 | 69 43 75 74 29 3b 0d 09 |m(menu, |iCut);..|
|000039f0| 09 45 6e 61 62 6c 65 49 | 74 65 6d 28 6d 65 6e 75 |.EnableI|tem(menu|
|00003a00| 2c 20 69 43 6f 70 79 29 | 3b 0d 09 09 45 6e 61 62 |, iCopy)|;...Enab|
|00003a10| 6c 65 49 74 65 6d 28 6d | 65 6e 75 2c 20 69 50 61 |leItem(m|enu, iPa|
|00003a20| 73 74 65 29 3b 0d 09 09 | 45 6e 61 62 6c 65 49 74 |ste);...|EnableIt|
|00003a30| 65 6d 28 6d 65 6e 75 2c | 20 69 43 6c 65 61 72 29 |em(menu,| iClear)|
|00003a40| 3b 0d 09 45 4e 44 20 45 | 4c 53 45 20 42 45 47 49 |;..END E|LSE BEGI|
|00003a50| 4e 09 09 09 09 09 09 09 | 7b 62 75 74 20 77 65 20 |N.......|{but we |
|00003a60| 6b 6e 6f 77 20 77 65 20 | 64 6f 20 6e 6f 74 7d 0d |know we |do not}.|
|00003a70| 09 09 44 69 73 61 62 6c | 65 49 74 65 6d 28 6d 65 |..Disabl|eItem(me|
|00003a80| 6e 75 2c 20 69 55 6e 64 | 6f 29 3b 0d 09 09 44 69 |nu, iUnd|o);...Di|
|00003a90| 73 61 62 6c 65 49 74 65 | 6d 28 6d 65 6e 75 2c 20 |sableIte|m(menu, |
|00003aa0| 69 43 75 74 29 3b 0d 09 | 09 44 69 73 61 62 6c 65 |iCut);..|.Disable|
|00003ab0| 49 74 65 6d 28 6d 65 6e | 75 2c 20 69 43 6f 70 79 |Item(men|u, iCopy|
|00003ac0| 29 3b 0d 09 09 44 69 73 | 61 62 6c 65 49 74 65 6d |);...Dis|ableItem|
|00003ad0| 28 6d 65 6e 75 2c 20 69 | 43 6c 65 61 72 29 3b 0d |(menu, i|Clear);.|
|00003ae0| 09 09 44 69 73 61 62 6c | 65 49 74 65 6d 28 6d 65 |..Disabl|eItem(me|
|00003af0| 6e 75 2c 20 69 50 61 73 | 74 65 29 3b 0d 09 45 4e |nu, iPas|te);..EN|
|00003b00| 44 3b 0d 0d 45 4e 44 3b | 20 7b 41 64 6a 75 73 74 |D;..END;| {Adjust|
|00003b10| 4d 65 6e 75 73 7d 0d 0d | 0d 7b 24 53 20 4d 61 69 |Menus}..|.{$S Mai|
|00003b20| 6e 7d 0d 50 52 4f 43 45 | 44 55 52 45 20 44 6f 4d |n}.PROCE|DURE DoM|
|00003b30| 65 6e 75 43 6f 6d 6d 61 | 6e 64 28 6d 65 6e 75 52 |enuComma|nd(menuR|
|00003b40| 65 73 75 6c 74 3a 20 4c | 4f 4e 47 49 4e 54 29 3b |esult: L|ONGINT);|
|00003b50| 0d 56 41 52 0d 09 6d 65 | 6e 75 49 44 09 09 09 3a |.VAR..me|nuID...:|
|00003b60| 20 49 4e 54 45 47 45 52 | 3b 09 09 7b 74 68 65 20 | INTEGER|;..{the |
|00003b70| 72 65 73 6f 75 72 63 65 | 20 49 44 20 6f 66 20 74 |resource| ID of t|
|00003b80| 68 65 20 73 65 6c 65 63 | 74 65 64 20 6d 65 6e 75 |he selec|ted menu|
|00003b90| 7d 0d 09 6d 65 6e 75 49 | 74 65 6d 09 09 3a 20 49 |}..menuI|tem..: I|
|00003ba0| 4e 54 45 47 45 52 3b 09 | 09 7b 74 68 65 20 69 74 |NTEGER;.|.{the it|
|00003bb0| 65 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |em numbe|r of the|
|00003bc0| 20 73 65 6c 65 63 74 65 | 64 20 6d 65 6e 75 7d 0d | selecte|d menu}.|
|00003bd0| 09 69 74 65 6d 48 69 74 | 09 09 09 3a 20 49 4e 54 |.itemHit|...: INT|
|00003be0| 45 47 45 52 3b 0d 09 64 | 61 4e 61 6d 65 09 09 09 |EGER;..d|aName...|
|00003bf0| 3a 20 53 74 72 32 35 35 | 3b 0d 09 64 61 52 65 66 |: Str255|;..daRef|
|00003c00| 4e 75 6d 09 09 3a 20 49 | 4e 54 45 47 45 52 3b 0d |Num..: I|NTEGER;.|
|00003c10| 09 68 61 6e 64 6c 65 64 | 42 79 44 41 09 09 3a 20 |.handled|ByDA..: |
|00003c20| 42 4f 4f 4c 45 41 4e 3b | 0d 09 69 67 6e 6f 72 65 |BOOLEAN;|..ignore|
|00003c30| 09 09 09 3a 20 42 4f 4f | 4c 45 41 4e 3b 0d 09 66 |...: BOO|LEAN;..f|
|00003c40| 69 09 09 09 09 3a 20 46 | 61 69 6c 49 6e 66 6f 3b |i....: F|ailInfo;|
|00003c50| 0d 09 0d 09 50 52 4f 43 | 45 44 55 52 45 20 48 61 |....PROC|EDURE Ha|
|00003c60| 6e 64 6c 65 4d 65 6e 75 | 28 65 72 72 6f 72 3a 20 |ndleMenu|(error: |
|00003c70| 49 4e 54 45 47 45 52 3b | 20 6d 65 73 73 61 67 65 |INTEGER;| message|
|00003c80| 3a 20 4c 6f 6e 67 49 6e | 74 29 3b 0d 09 42 45 47 |: LongIn|t);..BEG|
|00003c90| 49 4e 0d 09 09 48 69 6c | 69 74 65 4d 65 6e 75 28 |IN...Hil|iteMenu(|
|00003ca0| 30 29 3b 09 09 09 09 7b | 75 6e 68 69 67 68 6c 69 |0);....{|unhighli|
|00003cb0| 67 68 74 20 77 68 61 74 | 20 4d 65 6e 75 53 65 6c |ght what| MenuSel|
|00003cc0| 65 63 74 20 28 6f 72 20 | 4d 65 6e 75 4b 65 79 29 |ect (or |MenuKey)|
|00003cd0| 20 68 69 6c 69 74 65 64 | 7d 0d 09 45 4e 44 3b 0d | hilited|}..END;.|
|00003ce0| 0d 42 45 47 49 4e 0d 09 | 43 61 74 63 68 46 61 69 |.BEGIN..|CatchFai|
|00003cf0| 6c 75 72 65 73 28 66 69 | 2c 20 48 61 6e 64 6c 65 |lures(fi|, Handle|
|00003d00| 4d 65 6e 75 29 3b 0d 09 | 6d 65 6e 75 49 44 20 3a |Menu);..|menuID :|
|00003d10| 3d 20 48 69 57 72 64 28 | 6d 65 6e 75 52 65 73 75 |= HiWrd(|menuResu|
|00003d20| 6c 74 29 3b 09 7b 75 73 | 65 20 62 75 69 6c 74 2d |lt);.{us|e built-|
|00003d30| 69 6e 73 20 28 66 6f 72 | 20 65 66 66 69 63 69 65 |ins (for| efficie|
|00003d40| 6e 63 79 29 2e 2e 2e 7d | 0d 09 6d 65 6e 75 49 74 |ncy)...}|..menuIt|
|00003d50| 65 6d 20 3a 3d 20 4c 6f | 57 72 64 28 6d 65 6e 75 |em := Lo|Wrd(menu|
|00003d60| 52 65 73 75 6c 74 29 3b | 09 7b 74 6f 20 67 65 74 |Result);|.{to get|
|00003d70| 20 6d 65 6e 75 20 69 74 | 65 6d 20 6e 75 6d 62 65 | menu it|em numbe|
|00003d80| 72 20 61 6e 64 20 6d 65 | 6e 75 20 6e 75 6d 62 65 |r and me|nu numbe|
|00003d90| 72 7d 0d 09 43 41 53 45 | 20 6d 65 6e 75 49 44 20 |r}..CASE| menuID |
|00003da0| 4f 46 0d 09 09 6d 41 70 | 70 6c 65 3a 0d 09 09 09 |OF...mAp|ple:....|
|00003db0| 43 41 53 45 20 6d 65 6e | 75 49 74 65 6d 20 4f 46 |CASE men|uItem OF|
|00003dc0| 0d 09 09 09 09 69 41 62 | 6f 75 74 3a 09 09 09 09 |.....iAb|out:....|
|00003dd0| 7b 62 72 69 6e 67 20 75 | 70 20 61 6c 65 72 74 20 |{bring u|p alert |
|00003de0| 66 6f 72 20 41 62 6f 75 | 74 7d 0d 09 09 09 09 09 |for Abou|t}......|
|00003df0| 69 74 65 6d 48 69 74 20 | 3a 3d 20 41 6c 65 72 74 |itemHit |:= Alert|
|00003e00| 28 72 41 62 6f 75 74 41 | 6c 65 72 74 2c 20 4e 49 |(rAboutA|lert, NI|
|00003e10| 4c 29 3b 0d 09 09 09 09 | 4f 54 48 45 52 57 49 53 |L);.....|OTHERWIS|
|00003e20| 45 20 42 45 47 49 4e 09 | 09 7b 61 6c 6c 20 6e 6f |E BEGIN.|.{all no|
|00003e30| 6e 2d 41 62 6f 75 74 20 | 69 74 65 6d 73 20 69 6e |n-About |items in|
|00003e40| 20 74 68 69 73 20 6d 65 | 6e 75 20 61 72 65 20 44 | this me|nu are D|
|00003e50| 41 73 7d 0d 09 09 09 09 | 09 47 65 74 49 74 65 6d |As}.....|.GetItem|
|00003e60| 28 47 65 74 4d 48 61 6e | 64 6c 65 28 6d 41 70 70 |(GetMHan|dle(mApp|
|00003e70| 6c 65 29 2c 20 6d 65 6e | 75 49 74 65 6d 2c 20 64 |le), men|uItem, d|
|00003e80| 61 4e 61 6d 65 29 3b 0d | 09 09 09 09 09 64 61 52 |aName);.|.....daR|
|00003e90| 65 66 4e 75 6d 20 3a 3d | 20 4f 70 65 6e 44 65 73 |efNum :=| OpenDes|
|00003ea0| 6b 41 63 63 28 64 61 4e | 61 6d 65 29 3b 0d 09 09 |kAcc(daN|ame);...|
|00003eb0| 09 09 45 4e 44 3b 0d 09 | 09 09 45 4e 44 3b 0d 09 |..END;..|..END;..|
|00003ec0| 09 6d 46 69 6c 65 3a 0d | 09 09 09 43 41 53 45 20 |.mFile:.|...CASE |
|00003ed0| 6d 65 6e 75 49 74 65 6d | 20 4f 46 0d 09 09 09 09 |menuItem| OF.....|
|00003ee0| 69 4e 65 77 3a 0d 09 09 | 09 09 09 44 6f 5a 6f 6e |iNew:...|...DoZon|
|00003ef0| 65 4c 69 73 74 3b 0d 09 | 09 09 09 69 43 6c 6f 73 |eList;..|...iClos|
|00003f00| 65 3a 0d 09 09 09 09 09 | 69 67 6e 6f 72 65 20 3a |e:......|ignore :|
|00003f10| 3d 20 44 6f 43 6c 6f 73 | 65 57 69 6e 64 6f 77 28 |= DoClos|eWindow(|
|00003f20| 46 72 6f 6e 74 57 69 6e | 64 6f 77 29 3b 0d 09 09 |FrontWin|dow);...|
|00003f30| 09 09 69 51 75 69 74 3a | 0d 09 09 09 09 09 54 65 |..iQuit:|......Te|
|00003f40| 72 6d 69 6e 61 74 65 3b | 0d 09 09 09 45 4e 44 3b |rminate;|....END;|
|00003f50| 0d 09 09 6d 45 64 69 74 | 3a 09 09 09 09 09 09 7b |...mEdit|:......{|
|00003f60| 63 61 6c 6c 20 53 79 73 | 74 65 6d 45 64 69 74 20 |call Sys|temEdit |
|00003f70| 66 6f 72 20 44 41 20 65 | 64 69 74 69 6e 67 20 26 |for DA e|diting &|
|00003f80| 20 4d 75 6c 74 69 46 69 | 6e 64 65 72 7d 0d 09 09 | MultiFi|nder}...|
|00003f90| 09 68 61 6e 64 6c 65 64 | 42 79 44 41 20 3a 3d 20 |.handled|ByDA := |
|00003fa0| 53 79 73 74 65 6d 45 64 | 69 74 28 6d 65 6e 75 49 |SystemEd|it(menuI|
|00003fb0| 74 65 6d 2d 31 29 3b 09 | 7b 73 69 6e 63 65 20 77 |tem-1);.|{since w|
|00003fc0| 65 20 64 6f 6e 27 74 20 | 64 6f 20 61 6e 79 20 65 |e don't |do any e|
|00003fd0| 64 69 74 69 6e 67 7d 0d | 09 45 4e 44 3b 0d 09 53 |diting}.|.END;..S|
|00003fe0| 75 63 63 65 73 73 28 66 | 69 29 3b 0d 09 48 69 6c |uccess(f|i);..Hil|
|00003ff0| 69 74 65 4d 65 6e 75 28 | 30 29 3b 09 09 09 09 09 |iteMenu(|0);.....|
|00004000| 7b 63 6c 65 61 6e 75 70 | 7d 0d 45 4e 44 3b 20 7b |{cleanup|}.END; {|
|00004010| 44 6f 4d 65 6e 75 43 6f | 6d 6d 61 6e 64 7d 0d 0d |DoMenuCo|mmand}..|
|00004020| 0d 7b 24 53 20 4d 61 69 | 6e 7d 0d 50 52 4f 43 45 |.{$S Mai|n}.PROCE|
|00004030| 44 55 52 45 20 41 64 6a | 75 73 74 43 75 72 73 6f |DURE Adj|ustCurso|
|00004040| 72 28 6d 6f 75 73 65 3a | 20 50 6f 69 6e 74 3b 20 |r(mouse:| Point; |
|00004050| 72 65 67 69 6f 6e 3a 20 | 52 67 6e 48 61 6e 64 6c |region: |RgnHandl|
|00004060| 65 29 3b 0d 42 45 47 49 | 4e 0d 45 4e 44 3b 20 7b |e);.BEGI|N.END; {|
|00004070| 41 64 6a 75 73 74 43 75 | 72 73 6f 72 7d 0d 0d 0d |AdjustCu|rsor}...|
|00004080| 7b 24 53 20 4d 61 69 6e | 7d 0d 50 52 4f 43 45 44 |{$S Main|}.PROCED|
|00004090| 55 52 45 20 44 6f 45 76 | 65 6e 74 28 65 76 65 6e |URE DoEv|ent(even|
|000040a0| 74 3a 20 45 76 65 6e 74 | 52 65 63 6f 72 64 29 3b |t: Event|Record);|
|000040b0| 0d 56 41 52 0d 09 70 61 | 72 74 2c 20 65 72 72 09 |.VAR..pa|rt, err.|
|000040c0| 3a 20 49 4e 54 45 47 45 | 52 3b 0d 09 77 69 6e 64 |: INTEGE|R;..wind|
|000040d0| 6f 77 09 09 3a 20 57 69 | 6e 64 6f 77 50 74 72 3b |ow..: Wi|ndowPtr;|
|000040e0| 0d 09 68 69 74 09 09 09 | 3a 20 42 4f 4f 4c 45 41 |..hit...|: BOOLEA|
|000040f0| 4e 3b 0d 09 6b 65 79 09 | 09 09 3a 20 43 48 41 52 |N;..key.|..: CHAR|
|00004100| 3b 0d 09 66 69 09 09 09 | 3a 20 46 61 69 6c 49 6e |;..fi...|: FailIn|
|00004110| 66 6f 3b 0d 09 61 50 6f | 69 6e 74 09 09 3a 20 50 |fo;..aPo|int..: P|
|00004120| 6f 69 6e 74 3b 0d 09 0d | 09 50 52 4f 43 45 44 55 |oint;...|.PROCEDU|
|00004130| 52 45 20 48 61 6e 64 6c | 65 45 72 72 28 65 72 72 |RE Handl|eErr(err|
|00004140| 6f 72 3a 20 49 4e 54 45 | 47 45 52 3b 20 6d 65 73 |or: INTE|GER; mes|
|00004150| 73 61 67 65 3a 20 4c 6f | 6e 67 49 6e 74 29 3b 0d |sage: Lo|ngInt);.|
|00004160| 09 42 45 47 49 4e 0d 09 | 09 49 46 20 65 72 72 6f |.BEGIN..|.IF erro|
|00004170| 72 20 3e 20 30 20 54 48 | 45 4e 0d 09 09 09 41 6c |r > 0 TH|EN....Al|
|00004180| 65 72 74 55 73 65 72 28 | 30 2c 20 65 72 72 6f 72 |ertUser(|0, error|
|00004190| 29 0d 09 09 45 4c 53 45 | 0d 09 09 09 41 6c 65 72 |)...ELSE|....Aler|
|000041a0| 74 55 73 65 72 28 65 72 | 72 6f 72 2c 20 6d 65 73 |tUser(er|ror, mes|
|000041b0| 73 61 67 65 29 3b 0d 09 | 09 45 58 49 54 28 44 6f |sage);..|.EXIT(Do|
|000041c0| 45 76 65 6e 74 29 3b 0d | 09 45 4e 44 3b 20 7b 48 |Event);.|.END; {H|
|000041d0| 61 6e 64 6c 65 45 72 72 | 7d 0d 0d 42 45 47 49 4e |andleErr|}..BEGIN|
|000041e0| 0d 09 43 61 74 63 68 46 | 61 69 6c 75 72 65 73 28 |..CatchF|ailures(|
|000041f0| 66 69 2c 20 48 61 6e 64 | 6c 65 45 72 72 29 3b 0d |fi, Hand|leErr);.|
|00004200| 09 09 0d 09 43 41 53 45 | 20 65 76 65 6e 74 2e 77 |....CASE| event.w|
|00004210| 68 61 74 20 4f 46 0d 09 | 09 6d 6f 75 73 65 44 6f |hat OF..|.mouseDo|
|00004220| 77 6e 3a 20 42 45 47 49 | 4e 0d 09 09 09 70 61 72 |wn: BEGI|N....par|
|00004230| 74 20 3a 3d 20 46 69 6e | 64 57 69 6e 64 6f 77 28 |t := Fin|dWindow(|
|00004240| 65 76 65 6e 74 2e 77 68 | 65 72 65 2c 20 77 69 6e |event.wh|ere, win|
|00004250| 64 6f 77 29 3b 0d 09 09 | 09 43 41 53 45 20 70 61 |dow);...|.CASE pa|
|00004260| 72 74 20 4f 46 0d 09 09 | 09 09 69 6e 4d 65 6e 75 |rt OF...|..inMenu|
|00004270| 42 61 72 3a 20 42 45 47 | 49 4e 09 09 09 7b 70 72 |Bar: BEG|IN...{pr|
|00004280| 6f 63 65 73 73 20 74 68 | 65 20 6d 65 6e 75 20 63 |ocess th|e menu c|
|00004290| 6f 6d 6d 61 6e 64 7d 0d | 09 09 09 09 09 41 64 6a |ommand}.|.....Adj|
|000042a0| 75 73 74 4d 65 6e 75 73 | 3b 0d 09 09 09 09 09 44 |ustMenus|;......D|
|000042b0| 6f 4d 65 6e 75 43 6f 6d | 6d 61 6e 64 28 4d 65 6e |oMenuCom|mand(Men|
|000042c0| 75 53 65 6c 65 63 74 28 | 65 76 65 6e 74 2e 77 68 |uSelect(|event.wh|
|000042d0| 65 72 65 29 29 3b 0d 09 | 09 09 09 45 4e 44 3b 0d |ere));..|...END;.|
|000042e0| 09 09 09 09 69 6e 53 79 | 73 57 69 6e 64 6f 77 3a |....inSy|sWindow:|
|000042f0| 09 09 09 09 7b 6c 65 74 | 20 74 68 65 20 73 79 73 |....{let| the sys|
|00004300| 74 65 6d 20 68 61 6e 64 | 6c 65 20 74 68 65 20 6d |tem hand|le the m|
|00004310| 6f 75 73 65 44 6f 77 6e | 7d 0d 09 09 09 09 09 53 |ouseDown|}......S|
|00004320| 79 73 74 65 6d 43 6c 69 | 63 6b 28 65 76 65 6e 74 |ystemCli|ck(event|
|00004330| 2c 20 77 69 6e 64 6f 77 | 29 3b 0d 09 09 09 09 69 |, window|);.....i|
|00004340| 6e 43 6f 6e 74 65 6e 74 | 3a 3b 0d 09 09 09 09 69 |nContent|:;.....i|
|00004350| 6e 44 72 61 67 3a 3b 0d | 09 09 09 09 69 6e 47 72 |nDrag:;.|....inGr|
|00004360| 6f 77 3a 3b 0d 09 09 09 | 09 69 6e 5a 6f 6f 6d 49 |ow:;....|.inZoomI|
|00004370| 6e 2c 20 69 6e 5a 6f 6f | 6d 4f 75 74 3a 3b 0d 09 |n, inZoo|mOut:;..|
|00004380| 09 09 45 4e 44 3b 0d 09 | 09 45 4e 44 3b 0d 09 09 |..END;..|.END;...|
|00004390| 6b 65 79 44 6f 77 6e 2c | 20 61 75 74 6f 4b 65 79 |keyDown,| autoKey|
|000043a0| 3a 20 42 45 47 49 4e 09 | 09 09 09 7b 63 68 65 63 |: BEGIN.|...{chec|
|000043b0| 6b 20 66 6f 72 20 6d 65 | 6e 75 6b 65 79 20 65 71 |k for me|nukey eq|
|000043c0| 75 69 76 61 6c 65 6e 74 | 73 7d 0d 09 09 09 6b 65 |uivalent|s}....ke|
|000043d0| 79 20 3a 3d 20 43 48 52 | 28 42 41 6e 64 28 65 76 |y := CHR|(BAnd(ev|
|000043e0| 65 6e 74 2e 6d 65 73 73 | 61 67 65 2c 20 63 68 61 |ent.mess|age, cha|
|000043f0| 72 43 6f 64 65 4d 61 73 | 6b 29 29 3b 0d 09 09 09 |rCodeMas|k));....|
|00004400| 49 46 20 42 41 6e 64 28 | 65 76 65 6e 74 2e 6d 6f |IF BAnd(|event.mo|
|00004410| 64 69 66 69 65 72 73 2c | 20 63 6d 64 4b 65 79 29 |difiers,| cmdKey)|
|00004420| 20 3c 3e 20 30 20 54 48 | 45 4e 09 7b 43 6f 6d 6d | <> 0 TH|EN.{Comm|
|00004430| 61 6e 64 20 6b 65 79 20 | 64 6f 77 6e 7d 0d 09 09 |and key |down}...|
|00004440| 09 09 49 46 20 65 76 65 | 6e 74 2e 77 68 61 74 20 |..IF eve|nt.what |
|00004450| 3d 20 6b 65 79 44 6f 77 | 6e 20 54 48 45 4e 20 42 |= keyDow|n THEN B|
|00004460| 45 47 49 4e 0d 09 09 09 | 09 09 41 64 6a 75 73 74 |EGIN....|..Adjust|
|00004470| 4d 65 6e 75 73 3b 09 09 | 09 7b 65 6e 61 62 6c 65 |Menus;..|.{enable|
|00004480| 2f 64 69 73 61 62 6c 65 | 2f 63 68 65 63 6b 20 6d |/disable|/check m|
|00004490| 65 6e 75 20 69 74 65 6d | 73 20 70 72 6f 70 65 72 |enu item|s proper|
|000044a0| 6c 79 7d 0d 09 09 09 09 | 09 44 6f 4d 65 6e 75 43 |ly}.....|.DoMenuC|
|000044b0| 6f 6d 6d 61 6e 64 28 4d | 65 6e 75 4b 65 79 28 6b |ommand(M|enuKey(k|
|000044c0| 65 79 29 29 3b 0d 09 09 | 09 09 45 4e 44 3b 0d 09 |ey));...|..END;..|
|000044d0| 09 45 4e 44 3b 20 20 20 | 20 20 20 20 20 20 20 20 |.END; | |
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044f0| 20 20 20 20 20 7b 63 61 | 6c 6c 20 44 6f 41 63 74 | {ca|ll DoAct|
|00004500| 69 76 61 74 65 20 77 69 | 74 68 20 74 68 65 20 77 |ivate wi|th the w|
|00004510| 69 6e 64 6f 77 20 61 6e | 64 2e 2e 2e 7d 0d 09 09 |indow an|d...}...|
|00004520| 61 63 74 69 76 61 74 65 | 45 76 74 3a 3b 0d 09 09 |activate|Evt:;...|
|00004530| 75 70 64 61 74 65 45 76 | 74 3a 3b 0d 09 09 7b 31 |updateEv|t:;...{1|
|00004540| 2e 30 31 20 2d 20 49 74 | 20 69 73 20 6e 6f 74 20 |.01 - It| is not |
|00004550| 61 20 62 61 64 20 69 64 | 65 61 20 74 6f 20 61 74 |a bad id|ea to at|
|00004560| 20 6c 65 61 73 74 20 63 | 61 6c 6c 20 44 49 42 61 | least c|all DIBa|
|00004570| 64 4d 6f 75 6e 74 20 69 | 6e 20 72 65 73 70 6f 6e |dMount i|n respon|
|00004580| 73 65 0d 09 09 20 74 6f | 20 61 20 64 69 73 6b 45 |se... to| a diskE|
|00004590| 76 74 2c 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |vt, so t|hat the |
|000045a0| 75 73 65 72 20 63 61 6e | 20 66 6f 72 6d 61 74 20 |user can| format |
|000045b0| 61 20 66 6c 6f 70 70 79 | 2e 7d 0d 09 09 64 69 73 |a floppy|.}...dis|
|000045c0| 6b 45 76 74 3a 0d 09 09 | 09 49 46 20 48 69 57 72 |kEvt:...|.IF HiWr|
|000045d0| 64 28 65 76 65 6e 74 2e | 6d 65 73 73 61 67 65 29 |d(event.|message)|
|000045e0| 20 3c 3e 20 6e 6f 45 72 | 72 20 54 48 45 4e 20 42 | <> noEr|r THEN B|
|000045f0| 45 47 49 4e 0d 09 09 09 | 09 53 65 74 50 74 28 61 |EGIN....|.SetPt(a|
|00004600| 50 6f 69 6e 74 2c 20 6b | 44 49 4c 65 66 74 2c 20 |Point, k|DILeft, |
|00004610| 6b 44 49 54 6f 70 29 3b | 0d 09 09 09 09 65 72 72 |kDITop);|.....err|
|00004620| 20 3a 3d 20 44 49 42 61 | 64 4d 6f 75 6e 74 28 61 | := DIBa|dMount(a|
|00004630| 50 6f 69 6e 74 2c 20 65 | 76 65 6e 74 2e 6d 65 73 |Point, e|vent.mes|
|00004640| 73 61 67 65 29 3b 0d 09 | 09 09 45 4e 44 3b 0d 09 |sage);..|..END;..|
|00004650| 09 6b 4f 53 45 76 65 6e | 74 3a 0d 09 09 09 43 41 |.kOSEven|t:....CA|
|00004660| 53 45 20 42 41 6e 64 28 | 42 52 6f 74 4c 28 65 76 |SE BAnd(|BRotL(ev|
|00004670| 65 6e 74 2e 6d 65 73 73 | 61 67 65 2c 20 38 29 2c |ent.mess|age, 8),|
|00004680| 20 32 35 35 29 20 4f 46 | 09 7b 68 69 67 68 20 62 | 255) OF|.{high b|
|00004690| 79 74 65 20 6f 66 20 6d | 65 73 73 61 67 65 7d 0d |yte of m|essage}.|
|000046a0| 09 09 09 09 6b 53 75 73 | 70 65 6e 64 52 65 73 75 |....kSus|pendResu|
|000046b0| 6d 65 4d 65 73 73 61 67 | 65 3a 20 42 45 47 49 4e |meMessag|e: BEGIN|
|000046c0| 0d 09 09 09 09 09 67 49 | 6e 42 61 63 6b 67 72 6f |......gI|nBackgro|
|000046d0| 75 6e 64 20 3a 3d 20 42 | 41 6e 64 28 65 76 65 6e |und := B|And(even|
|000046e0| 74 2e 6d 65 73 73 61 67 | 65 2c 20 6b 52 65 73 75 |t.messag|e, kResu|
|000046f0| 6d 65 4d 61 73 6b 29 20 | 3d 20 30 3b 0d 09 09 09 |meMask) |= 0;....|
|00004700| 09 45 4e 44 3b 0d 09 09 | 09 45 4e 44 3b 0d 09 45 |.END;...|.END;..E|
|00004710| 4e 44 3b 0d 09 0d 09 53 | 75 63 63 65 73 73 28 66 |ND;....S|uccess(f|
|00004720| 69 29 3b 0d 45 4e 44 3b | 20 7b 44 6f 45 76 65 6e |i);.END;| {DoEven|
|00004730| 74 7d 0d 0d 0d 7b 24 53 | 20 4d 61 69 6e 7d 0d 50 |t}...{$S| Main}.P|
|00004740| 52 4f 43 45 44 55 52 45 | 20 45 76 65 6e 74 4c 6f |ROCEDURE| EventLo|
|00004750| 6f 70 3b 0d 56 41 52 0d | 09 63 75 72 73 6f 72 52 |op;.VAR.|.cursorR|
|00004760| 67 6e 09 3a 20 52 67 6e | 48 61 6e 64 6c 65 3b 0d |gn.: Rgn|Handle;.|
|00004770| 09 67 6f 74 45 76 65 6e | 74 09 3a 20 42 4f 4f 4c |.gotEven|t.: BOOL|
|00004780| 45 41 4e 3b 0d 09 65 76 | 65 6e 74 09 09 3a 20 45 |EAN;..ev|ent..: E|
|00004790| 76 65 6e 74 52 65 63 6f | 72 64 3b 0d 0d 42 45 47 |ventReco|rd;..BEG|
|000047a0| 49 4e 0d 09 63 75 72 73 | 6f 72 52 67 6e 20 3a 3d |IN..curs|orRgn :=|
|000047b0| 20 4e 65 77 52 67 6e 3b | 09 09 09 7b 77 65 d5 6c | NewRgn;|...{we.l|
|000047c0| 6c 20 70 61 73 73 20 57 | 4e 45 20 61 6e 20 65 6d |l pass W|NE an em|
|000047d0| 70 74 79 20 72 65 67 69 | 6f 6e 20 74 68 65 20 31 |pty regi|on the 1|
|000047e0| 73 74 20 74 69 6d 65 20 | 74 68 72 75 7d 0d 0d 09 |st time |thru}...|
|000047f0| 52 45 50 45 41 54 0d 09 | 09 49 46 20 67 48 61 73 |REPEAT..|.IF gHas|
|00004800| 57 61 69 74 4e 65 78 74 | 45 76 65 6e 74 20 54 48 |WaitNext|Event TH|
|00004810| 45 4e 09 7b 70 75 74 20 | 75 73 20 27 61 73 6c 65 |EN.{put |us 'asle|
|00004820| 65 70 27 20 66 6f 72 65 | 76 65 72 20 75 6e 64 65 |ep' fore|ver unde|
|00004830| 72 20 4d 75 6c 74 69 46 | 69 6e 64 65 72 7d 0d 09 |r MultiF|inder}..|
|00004840| 09 09 67 6f 74 45 76 65 | 6e 74 20 3a 3d 20 57 61 |..gotEve|nt := Wa|
|00004850| 69 74 4e 65 78 74 45 76 | 65 6e 74 28 65 76 65 72 |itNextEv|ent(ever|
|00004860| 79 45 76 65 6e 74 2c 20 | 65 76 65 6e 74 2c 20 4d |yEvent, |event, M|
|00004870| 41 58 4c 4f 4e 47 49 4e | 54 2c 20 63 75 72 73 6f |AXLONGIN|T, curso|
|00004880| 72 52 67 6e 29 0d 09 09 | 45 4c 53 45 20 42 45 47 |rRgn)...|ELSE BEG|
|00004890| 49 4e 0d 09 09 09 53 79 | 73 74 65 6d 54 61 73 6b |IN....Sy|stemTask|
|000048a0| 3b 09 09 09 09 7b 6d 75 | 73 74 20 62 65 20 63 61 |;....{mu|st be ca|
|000048b0| 6c 6c 65 64 20 69 66 20 | 75 73 69 6e 67 20 47 65 |lled if |using Ge|
|000048c0| 74 4e 65 78 74 45 76 65 | 6e 74 7d 0d 09 09 09 67 |tNextEve|nt}....g|
|000048d0| 6f 74 45 76 65 6e 74 20 | 3a 3d 20 47 65 74 4e 65 |otEvent |:= GetNe|
|000048e0| 78 74 45 76 65 6e 74 28 | 65 76 65 72 79 45 76 65 |xtEvent(|everyEve|
|000048f0| 6e 74 2c 20 65 76 65 6e | 74 29 3b 0d 09 09 45 4e |nt, even|t);...EN|
|00004900| 44 3b 0d 09 09 49 46 20 | 67 6f 74 45 76 65 6e 74 |D;...IF |gotEvent|
|00004910| 20 54 48 45 4e 20 42 45 | 47 49 4e 0d 09 09 09 41 | THEN BE|GIN....A|
|00004920| 64 6a 75 73 74 43 75 72 | 73 6f 72 28 65 76 65 6e |djustCur|sor(even|
|00004930| 74 2e 77 68 65 72 65 2c | 20 63 75 72 73 6f 72 52 |t.where,| cursorR|
|00004940| 67 6e 29 3b 20 7b 6d 61 | 6b 65 20 73 75 72 65 20 |gn); {ma|ke sure |
|00004950| 77 65 20 68 61 76 65 20 | 74 68 65 20 72 69 67 68 |we have |the righ|
|00004960| 74 20 63 75 72 73 6f 72 | 7d 0d 09 09 09 44 6f 45 |t cursor|}....DoE|
|00004970| 76 65 6e 74 28 65 76 65 | 6e 74 29 3b 0d 09 09 45 |vent(eve|nt);...E|
|00004980| 4e 44 3b 0d 09 09 41 64 | 6a 75 73 74 43 75 72 73 |ND;...Ad|justCurs|
|00004990| 6f 72 28 65 76 65 6e 74 | 2e 77 68 65 72 65 2c 20 |or(event|.where, |
|000049a0| 63 75 72 73 6f 72 52 67 | 6e 29 3b 0d 09 55 4e 54 |cursorRg|n);..UNT|
|000049b0| 49 4c 20 46 41 4c 53 45 | 3b 09 09 09 09 09 7b 6c |IL FALSE|;.....{l|
|000049c0| 6f 6f 70 20 66 6f 72 65 | 76 65 72 3b 20 77 65 20 |oop fore|ver; we |
|000049d0| 71 75 69 74 20 74 68 72 | 6f 75 67 68 20 61 6e 20 |quit thr|ough an |
|000049e0| 45 78 69 74 54 6f 53 68 | 65 6c 6c 7d 0d 45 4e 44 |ExitToSh|ell}.END|
|000049f0| 3b 20 7b 45 76 65 6e 74 | 4c 6f 6f 70 7d 0d 0d 0d |; {Event|Loop}...|
|00004a00| 50 52 4f 43 45 44 55 52 | 45 20 5f 44 61 74 61 49 |PROCEDUR|E _DataI|
|00004a10| 6e 69 74 3b 20 45 58 54 | 45 52 4e 41 4c 3b 0d 0d |nit; EXT|ERNAL;..|
|00004a20| 0d 7b 24 53 20 4d 61 69 | 6e 7d 0d 42 45 47 49 4e |.{$S Mai|n}.BEGIN|
|00004a30| 0d 09 55 6e 6c 6f 61 64 | 53 65 67 28 40 5f 44 61 |..Unload|Seg(@_Da|
|00004a40| 74 61 49 6e 69 74 29 3b | 09 09 7b 6e 6f 74 65 20 |taInit);|..{note |
|00004a50| 74 68 61 74 20 5f 44 61 | 74 61 49 6e 69 74 20 6d |that _Da|taInit m|
|00004a60| 75 73 74 20 6e 6f 74 20 | 62 65 20 69 6e 20 4d 61 |ust not |be in Ma|
|00004a70| 69 6e 21 7d 0d 09 4d 61 | 78 41 70 70 6c 5a 6f 6e |in!}..Ma|xApplZon|
|00004a80| 65 3b 09 09 09 09 7b 65 | 78 70 61 6e 64 20 74 68 |e;....{e|xpand th|
|00004a90| 65 20 68 65 61 70 20 73 | 6f 20 63 6f 64 65 20 73 |e heap s|o code s|
|00004aa0| 65 67 6d 65 6e 74 73 20 | 6c 6f 61 64 20 61 74 20 |egments |load at |
|00004ab0| 74 68 65 20 74 6f 70 7d | 0d 0d 09 49 6e 69 74 53 |the top}|...InitS|
|00004ac0| 69 67 6e 61 6c 73 3b 0d | 09 49 6e 69 74 69 61 6c |ignals;.|.Initial|
|00004ad0| 69 7a 65 3b 09 09 09 09 | 09 7b 69 6e 69 74 69 61 |ize;....|.{initia|
|00004ae0| 6c 69 7a 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d |lize the| program|
|00004af0| 7d 0d 09 55 6e 6c 6f 61 | 64 53 65 67 28 40 49 6e |}..Unloa|dSeg(@In|
|00004b00| 69 74 69 61 6c 69 7a 65 | 29 3b 09 09 7b 6e 6f 74 |itialize|);..{not|
|00004b10| 65 20 74 68 61 74 20 49 | 6e 69 74 69 61 6c 69 7a |e that I|nitializ|
|00004b20| 65 20 6d 75 73 74 20 6e | 6f 74 20 62 65 20 69 6e |e must n|ot be in|
|00004b30| 20 4d 61 69 6e 21 7d 0d | 0d 09 45 76 65 6e 74 4c | Main!}.|..EventL|
|00004b40| 6f 6f 70 3b 09 09 09 09 | 09 7b 63 61 6c 6c 20 74 |oop;....|.{call t|
|00004b50| 68 65 20 6d 61 69 6e 20 | 65 76 65 6e 74 20 6c 6f |he main |event lo|
|00004b60| 6f 70 7d 0d 45 4e 44 2e | 0d 00 00 00 00 00 00 00 |op}.END.|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 1e |.......L|...L....|
|00004b90| 50 6f 72 74 5e 2e 70 6f | 72 74 52 65 63 74 2c 20 |Port^.po|rtRect, |
|00004ba0| 74 65 78 74 48 29 3b 20 | 7b 63 61 6c 6c 20 54 65 |textH); |{call Te|
|00004bb0| 0d 47 65 74 5a 6f 6e 65 | 4c 69 73 74 2e 70 02 00 |.GetZone|List.p..|
|00004bc0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 60 |..TEXTMP|S .....`|
|00004bd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 60 |..TEXTMP|S .....`|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 a1 4b 04 00 00 00 | 4a e9 00 00 01 6a 69 6e |...K....|J....jin|
|00004c00| 64 6f 77 20 4d 67 72 20 | 74 6f 20 65 6e 64 20 75 |dow Mgr |to end u|
|00004c10| 70 64 61 74 65 7d 0d 09 | 09 09 20 20 45 4e 44 3b |pdate}..|.. END;|
|00004c20| 20 7b 6f 66 20 75 70 64 | 61 74 65 45 76 74 7d 0d | {of upd|ateEvt}.|
|00004c30| 0d 09 09 45 4e 44 3b 20 | 7b 6f 66 20 65 76 65 6e |...END; |{of even|
|00004c40| 74 20 43 41 53 45 7d 0d | 0d 09 55 4e 54 49 4c 20 |t CASE}.|..UNTIL |
|00004c50| 64 6f 6e 65 46 6c 61 67 | 3b 0d 20 20 45 4e 44 2e |doneFlag|;. END.|
|00004c60| 0d 46 49 52 4d 20 4e 56 | 00 00 48 e7 20 00 4e ad |.FIRM NV|..H. .N.|
|00004c70| 00 4a 4a 80 67 08 4e ba | e3 28 70 00 60 20 4e ba |.JJ.g.N.|.(p.` N.|
|00004c80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00004c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ca0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00004cb0| 02 7d 00 23 02 92 01 d6 | 05 0c a1 4f 09 4c 00 00 |.}.#....|...O.L..|
|00004cc0| 33 3e 00 00 33 3e 00 00 | 32 0d 01 00 00 00 01 00 |3>..3>..|2.......|
|00004cd0| 00 00 01 4c 00 00 00 4c | 00 00 00 1e 00 25 27 dc |...L...L|.....%'.|
|00004ce0| 09 30 00 00 00 1c 00 1e | ff ff 00 00 00 00 00 00 |.0......|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+